Nexus Weblogging
ChinaonRails
You are here ChinaonRails > 网站 > > 长篇图解git中恢复“丢失的提交”

bd7lx


58.704%

disconnected
登录后回复主题 | 跳到回复(1)

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

... by bd7lx ... 6 月 20 天前 ... 207 次点击

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

1 - 12-9 10:39
bd7lx 楼主 深圳
http://www.postal-code.com/binarycode/2008/12/05/handy-git-command-stash/
看完之后有话想说?那就帮楼主加盖一层吧!

在回复之前你需要先进行登录
电子邮件或昵称
密码
© 2007 A Jesse Cai Production   -   About   -   京ICP备07020911号
a site powered by Project Babel