mike628 mike628 -4 years ago 273
Git Question

How to get the current branch name in Git?

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

in bash, it tells me what I'm doing.

Answer Source

"git branch" should show all the local branches of your repo. The starred branch is your current branch.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download