Bash script to view the git branches on mac terminal with username, working directory and the state of the current branch (means if there is any changes made or not)
Steps
- Go to home dir (cd)
- open .bash_profile file (vi .bash_profile)
- copy and paste the content
- save .bash_profile file
- press ESC
- press :wq or :x
- press Enter
- Reflect the changes by running below command
- source ~/.bash_profile