昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期二, 九月 23, 2014

Sourcetree Git revert crash

Use SourceTree to do a git revert, the source tree crash, then sourcetree doesn't work properly.

Each time I select the reverted commit, sourcetree crash

To fix that, I found following solution

First, reset to previous commit
git reset HEAD^ --hard 
Second, Because I have push the commit, I have to reset that for the remote as well
git push -f


Also, Because I have another local which has pulled the change, I have do this again for that local...

--
Feng

没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.