Git branch cheatsheet

Originally published at: https://caribbean.dev/git-branch-cheatsheet/

Key: Enter your information in places highlighted in “Italics”. Creating a new branch: git branch “name“ git branch “name” “version id“ Switching branch: git switch “branch name” (this is the preferred method) git checkout “branch name“ Rename branch: git branch -m “new name“ Renaming a non-head branch: git branch -m “old name” “new name“ Tracking…

1 Like