Git_Alias
Git Alias
Check which branch
To display the current branch you're on, without the other branches listed, you can do the following:
git rev-parse --abbrev-ref HEAD
To display the current branch you're on, without the other branches listed, you can do the following:
git rev-parse --abbrev-ref HEAD