get git branches code example Example 1: branch list in git git branch -a Example 2: git get remote branches git branch -r Example 3: git get local branches git branch -l