Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 426 Bytes

git-restore-branch.md

File metadata and controls

16 lines (9 loc) · 426 Bytes

Restore locally deleted branch

This command is used for restoring a locally deleted branch

git checkout -b {{BRANCH_NAME}} {{SHA_HASH}}

  • BRANCH_NAME: Branch name which needs to be restored
  • SHA_HASH: Hash of the last commit on the branch, use - Git Activity Trace to get the hash
Example:

git checkout -b ak-cli-dev 324ed3

Related