We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
git reflog 可以查看所有分支的所有操作记录(包括已经被删除的 commit 记录和 reset 的操作)
例如执行 git reset --hard HEAD~1,退回到上一个版本,用git log则是看不出来被删除的commitid,用git reflog则可以看到被删除的commitid,我们就可以买后悔药,恢复到被删除的那个版本。
Sorry, something went wrong.
ust two commands save my life
git reflog 2. This will revert the HEAD to commit that you deleted.
git reset --hard ex. git reset --hard b4b2c02
git reflog:查找所有提交的 commit 历史 git reset --hard 9acd4e9:将git指针回溯到其中的一个版本 commit 记录与 branch 无关
No branches or pull requests
第 3 题:如果一个实习生,他本地git的A分支被误删了, A分支代码没有被push到远程,如何找到之前A的提交记录和代码
The text was updated successfully, but these errors were encountered: