if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
- Open up terminal and navigate to your root/home directory: cd ~
- Download git-completion.bash from github.com via the terminal by typing the following: curl -Lo .git-completion.bash https://github.com/git/git/raw/master/contrib/completion/git-completion.bash
- Put the following in you .bashrc or .bash_profile in you root/home directory:
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
- Restart Terminal
- Navigate to you git repository
- Type "git a"+tab and you should see "git add" or try "git h"+tab and you should see "git help"
Bash Scripting: How to
Bash Beginners Guide
Advanced Bash Scripting
No comments:
Post a Comment