542179528 发表于 2018-9-19 06:59:48

长篇图解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
http://programblings.com/wp-content/uploads/2008/06/gitk_recovered_with_rebase.png
  帮助走出困境的命令,检查
  * git show
  * git fsck −−lost-found
  * git diff
  脱离险境
  * git rebase
  * git cherry-pick
  * git merge
  * git apply
  git 里面狂奔乱跑不用怕,git是仁慈的,宽厚的,允许你犯错误
  forgiving

页: [1]
查看完整版本: 长篇图解git中恢复“丢失的提交” [zt]