When working with git branches I found it helpful if the branch was displayed in my terminal itself rather than me having to cross check
In both the approaches all we have to do is add the piece of code to our .bashrc and source it.
In both the approaches all we have to do is add the piece of code to our .bashrc and source it.
Steps :
- Open your .bashrc file with your favorite editor
- Copy and paste code snippets of any one approach
- source the .bashrc file
gedit ~/.bashrc
source ~/.bashrc