毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> linux >> 正文

You asked me to pull without telling me which branch you

更新时间:2013-1-21:  来源:毕业论文

You asked me to pull without telling me which branch you

当我切换道master分支上pull的时候,出现下面错误:

You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.

If you often merge with the same branch, you may want to
use something like the following in your configuration file:
    [branch "master"]
    remote = <nickname>
    merge = <remote-ref>

    [remote "<nickname>"]
    url = <url>
    fetch = <refspec>

See git-config(1) for details.

请各位高手指点啊,在线狂等中。。。 毕业论文 

当我git status时,出现:
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
# ../adb
# ../customize/shell/.p400/
# ../packages/apps/Settings/tests/.classpath
# ../packages/apps/Settings/tests/.project
# ../packages/apps/Settings/tests/bin/
# ../packages/apps/Settings/tests/gen/
# ../packages/apps/Settings/tests/project.properties
# ../reset.sh
# ../reset.sh~
# ../reset.txt~
# ../vendor/sprd/hsdroid/BoardConfig.mk
nothing added to commit but untracked files present (use "git add" to track)
可是这些东西都不是我修改的啊:
../adb
# ../customize/shell/.p400/
# ../packages/apps/Settings/tests/.classpath
# ../packages/apps/Settings/tests/.project
# ../packages/apps/Settings/tests/bin/
# ../packages/apps/Settings/tests/gen/
# ../packages/apps/Settings/tests/project.properties
# ../reset.sh
# ../reset.sh~
# ../reset.txt~
# ../vendor/sprd/hsdroid/BoardConfig.mk

git pull的时候失败可能是自己本地有修改没有提交导致的,你虽然没修改这些东西,但是看楼主这样子应该是编译过这个仓库吧,这样产生了一些新的文件没有加入追踪。如果楼主想去掉所有的,git checkout -f即可,然后再pull;
不过这样可能导致一些自己的修改没了,可以git commit -a,这个命令会把当前的修改提交到本地(新产生的文件不在追踪范围),然后再pull。建议楼主不要在master工作,自己单独建立一个分支,然后在需要时与master 进行下rebase即可,不知道回答的是不是希望的。

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。