Skip to content
New issue

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

"Recovering a deleted merged Git branch" blog is wrong #34

Open
sgpinkus opened this issue Jan 12, 2022 · 0 comments
Open

"Recovering a deleted merged Git branch" blog is wrong #34

sgpinkus opened this issue Jan 12, 2022 · 0 comments

Comments

@sgpinkus
Copy link

sgpinkus commented Jan 12, 2022

This post states given this merge commit:

commit <very long SHA here>
Merge:  <more SHA stuff>
Author: Hermione Granger <[email protected]>
Date:   Thu Nov 26 10:09:00 2015 +0000
 
   Merged in branch-to-recover (pull request #100)

You recover the merged and deleted branch from commit: <very long SHA here>. This is wrong. The deleted branch's head commit is one of the hashes in <more SHA stuff>. You recover it with that hash. I realize it's an old small personal blog post but the post is fairly highly ranked on search engines. Can you please fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant