how to see which brach you currently at on git code example
Example 1: get current branch name git
git rev-parse --abbrev-ref HEAD
Example 2: git get local branches
git branch -l
git rev-parse --abbrev-ref HEAD
git branch -l