Adding git branch on the Bash command prompt

I tried adding the git branch I’m currently working on (checked-out) on the bash prompt without success.. (while keeping my current path which shows the active directory/file intact)
I have a .bashrc file on my home, but I also saw many people mentioning the .profile file..

14 Answers
14

Leave a Comment