码迷,mamicode.com
首页 > 其他好文 > 详细

Git 问题

时间:2015-11-16 15:48:52      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:

You are not currently on a branch, so I cannot use any

症状:有一次pull的时候又出现冲突,这回用“git reset --hard FETCH_HEAD”方法都不行了,出现:

$ git pull
You are not currently on a branch, so I cannot use any
‘branch.<branchname>.merge‘ in your configuration file.
Please specify which remote branch you want to use on the command
line and try again (e.g. ‘git pull <repository> <refspec>‘).
See git-pull(1) for details.
解决方法:

首先git checkout -b temp

其次git checkout master

即可恢复到master repository的状态,然后就可以pull了

Git 问题

标签:

原文地址:http://www.cnblogs.com/ts-develpoer/p/4968774.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!