Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 282 Bytes

git-branch.md

File metadata and controls

26 lines (16 loc) · 282 Bytes

git branch

Get current branch

git branch --show-current

rename branch

# rename current branch
git branch -m <newname>

# rename another branch
git branch -m <oldname> <newname>

set tracking branch

git branch -u <remote>/<branch>