Git show current branch

To get the current branch of a Git repository.

Run the following command:


	git show-branch

The output will be:


$ git show-branch
[master] 

References:

Git

Recent Comments