Hello,阳光柠檬! 养成记录笔记的好习惯

Git灾难恢复

2016-11-09
Git

Recover a dropped stash in Git

1) Show all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.

git fsck –no-reflog

2) git show

3) git branch recovered-branch

1


Similar Posts

上一篇 Git常用命令

Comments