You can just type in command line (console) on Linux, in the repository directory:
$ git status
and you will see some text, among which something similar to:
...On branch master...
which means you are currently on master
branch. If you are editing any file at that moment and it is located in the same local repository (local directory containing the files that are under Git version control management), you are editing file in this branch.