例如用git branch -D test删除某次提交,怎么找回呢。
查看了下git log的manual,知道可以这么找回了。备份下
git log -g | grep -B 1 'myemail'
找出了这个sha值再
git checkout xxxyyyzzz