/how to view current git branches code example Example 1: how to get current git branch git branch --show-current Example 2: git get local branches git branch -l