1. Home
  2. ›
  3. Git
  4. ›
  5. Branch from a commit

You can create a new branch from any previous commit by running the following code.

#git
git branch new-branch-name {SHA-1 checksum of a commit}
copy
Full Git cheatsheet