Terminal does not have anything to do with git-branch. If you need to know in which branch you are currently working on then you need to manually type
$ git branch.
You can modify your terminal settings to make it show you which git branch you are working currently. To do this you need to put some piece of code in a file. Follow the steps below
- open the file
~/.bashrc (in home folder) with some text editor with root permission and copy-paste the following code in that file (click the link below to see the code snippet)
- Restart the terminal or open new tab, you are done!