Skip to content

Instantly share code, notes, and snippets.

@skalinets
Last active August 31, 2017 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skalinets/8df45e65287ed8c4f2b54012be50d1f2 to your computer and use it in GitHub Desktop.
Save skalinets/8df45e65287ed8c4f2b54012be50d1f2 to your computer and use it in GitHub Desktop.

While branch can be removed, commit it is referring is not. All commits in git live literally forever. So if you've removed some branch by mistake, just create another one with the same name and point it to the same commit. How to know the commit? git is so kind so it tells the commit hash during branch removal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment