Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 519 Bytes

File metadata and controls

13 lines (12 loc) · 519 Bytes

bash-script-to-view-git-branches-on-mac-terminal-and-git-command-completion

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