- Run in intermal:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash - Run in terminal:
code ~/.bash_profile - Add to
.bash_profile:
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
- Run in terminal:
source ~/.bash_profile
So good.
git pull origin na+ TAB =git pull origin name-of-branch