Actions

EmSys

Git - Branches

From EdWiki

Git - Branches

  • Create a branch
git branch <name>
git branch <name> <commit-id>
  • Delete a branch
git branch -d <name>
  • List branch
git branch
git branch -r   # remote branch
  • Jump to a commit
git checkout <commit-id>
git checkout -b <name> <commit-id>