docs/branching.md
git branch --merged master
git branch --merged master | grep -v '^\*' | xargs -n 1 git branch -d
Alternatives:
git branch --merged master | grep -v '^\*\| master' | xargs -n 1 git branch -d # will not delete master if master is not checked out
git branch -vv
git branch -u origin/mybranch
git branch -d <local_branchname>
git branch -a
git branch -r
git branch -a --contains <commit-ish>
Alternatives:
git branch --contains <commit-ish>
git branch -m <new-branch-name>
Alternatives:
git branch -m [<old-branch-name>] <new-branch-name>
master branchgit archive master --format=zip --output=master.zip
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D
git bundle create <file> <branch-name>
git rev-parse --abbrev-ref HEAD
git describe --tags --abbrev=0
git checkout master && git branch --no-merged
git format-patch -M upstream..topic
git switch <branch-name>
Alternatives:
git switch -c <new-branch-name>