Sometimes you might be tired and you might have forgotten which is your current branch in git, and therefore you need some kind of a guide that will show you your current branch. So here is the command that will do this for you:
This command will get your current branch displayed in git:
git branch | grep \*
It’s as simple as that.