Skip to content

Instantly share code, notes, and snippets.

@anshuraj
Last active October 7, 2022 11:45
Show Gist options
  • Save anshuraj/b5bc600722136acbe9bc0191b643a5ee to your computer and use it in GitHub Desktop.
Save anshuraj/b5bc600722136acbe9bc0191b643a5ee to your computer and use it in GitHub Desktop.
git autocomplete

Download the git-completion.sh file from GitHub:

curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash

Next, add the following to your ~/.bash_profile file:

if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment