Git and GitHub is one of the most imortant tool for software development.
One of its great feature is branching/merging. Whenever I am inside a git directory, I have to run
git status to see which branch I am currently working on. Contstantly switching branches is always confusing to me.
The solution to this is to have the terminal prompt display the current branch name.
First create a
.bash directory in your home directory and clone the project to it:
~/.bashrc and add the following to the bottom:
cd into any git directory, current branch name will be shown in the terminal prompt.