Bash completion for Git isn't available by default on the Mac's Terminal. So you have to assign it yourself in the environment path setup. By default your git directory should be at /usr/local/git in Mac.
Assuming you're at your user directory:
Step 1:
sudo nano .bash_profile
Step 2:
add the line
source /usr/local/git/contrib/completion/git-completion.bash
Ctrl+X to save, Ctrl+Y to save file name.
Step 3:
source .bash_profile
Logout and Login again.
Comments
Post a Comment