Open the terminal and make dir named .git-prompt
, inside clone the repository.
mkdir ~/.git-prompt
git clone https://github.com/rich-97/git-prompt ~/.git-prompt
After that, write the following lines in your ~/.bashrc
.
export GIT_PROMPT=~/.git-prompt/git-prompt
source $GIT_PROMPT/main.sh
And in your terminal sesion execute source ~/.bashrc
.