找回被删除的 Git Stashes Charvel 2018-01-18 655 阅读1分钟 Git 的 Stash 功能很方便的帮我们存一些临时代码,如果不小心把 Stash 代码删除了如何恢复呢? 使用 git fsck --lost-found 查看我们最近删除的 Stash ; 找到你需要恢复的 dangling commit(只需关注 dangling commit ); 再使用 git merge commitid 即可恢复。 转自https://github.com/southpeak/iOS-tech-set/blob/master/2017/11.md