Cook

Create new branch from given commit

git checkout -b new-branch a67de0

  • Equivalent to checking out a commit, then creating a new branch

git checkout -b new-branch HEAD~3

Stop tracking a remote branch

git branch --unset-upstream

Set local branch to track remote branch

git branch --set-upstream-to=origin/my-feature my-feature