我不是一个git master,但是我已经和它一起工作了一段时间,有几个不同的项目.在每个项目中,我总是从那时git clone [repository]
起,总是可以git pull
,只要我没有突出的变化,当然.
最近,我不得不恢复到以前的分支,并且这样做了git checkout 4f82a29
.当我再次准备好拉,我发现我必须将我的分支设置回主人.现在,我不能使用笔直git pull
,而是必须指定git pull origin master
,这很烦人,并告诉我,我不完全了解发生了什么.
更改了哪些不允许我在git pull
没有指定原始主文件的情况下执行直接操作,以及如何将其更改回来?
更新:
-bash-3.1$ cat config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[branch "master"]
[remote "origin"]
url = git@github.com:user/project.git
fetch = refs/heads/*:refs/remotes/origin/*
Run Code Online (Sandbox Code Playgroud)
更新2:要清楚,我明白我的原始方法可能不正确,但我需要修复此回购,以便我可以git pull
再次使用.目前,git pull导致:
-bash-3.1$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your …
Run Code Online (Sandbox Code Playgroud)