Dup Goto 📝

GitBranches

PT2/aw/dev/git 07-31 13:46:42
To Pop
20 lines, 51 words, 398 chars Monday 2023-07-31 13:46:42

Showing Branches

git branch # shows local branches
git branch -a # shows all branches
git branch -r # shows remote branches

Creating Branches

git branch local-branch-name

Selecting Branches

git checkout my-branch

For remote branches

git checkout -b local-branch-name remotes/origin/remote-branch-name