+14 votes
1 view
in Devops and Agile by (25k points)

I'm from a Subversion background and, when I had a branch, I knew what I was working on with "These working files point to this branch".

But with Git I'm not sure when I am editing a file in NetBeans or Notepad++, whether it's tied to the master or another branch.

There's no problem with git in bash, it tells me what I'm doing.

1 Answer

+11 votes
by (63.3k points)

To display the current branch you're working on, without the other branches being listed, you can do the following:

git rev-parse --abbrev-ref HEAD

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...