Skip to content

Get current branch name

To get the branch you’re currently on in git, run this command:

[sc name=”src” url=”https://stackoverflow.com/questions/6245570/how-to-get-the-current-branch-name-in-git” ]

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.