长篇图解git中恢复“丢失的提交” [zt]

长篇图解git中恢复“丢失的提交” http://chinaonrails.com/topic/view/1769.html
... by bd7lx ... 29 天 20 小时前 ... 50 次点击

http://programblings.com/2008/06/07/the-illustrated-guide-to-recovering-lost-commits-with-git/

比如不小心把branch给删了,还没提交呢?

git里面猫腻多,隐藏着stash



帮助走出困境的命令,检查

* git show
* git fsck −−lost-found
* git diff

脱离险境

* git rebase
* git cherry-pick
* git merge
* git apply
git 里面狂奔乱跑不用怕,git是仁慈的,宽厚的,允许你犯错误

forgiving

你可能感兴趣的:(#Git)