Skip to content

Instantly share code, notes, and snippets.

View ryanbraganza's full-sized avatar
🔂

Ryan Braganza ryanbraganza

🔂
View GitHub Profile
@ryanbraganza
ryanbraganza / Git branch bash autocomplete *with aliases*
Created January 8, 2017 19:03 — forked from JuggoPop/Git branch bash autocomplete *with aliases*
Git branch bash autocomplete *with aliases* (add to .bash_profile)
# To Setup:
# 1) Save the .git-completion.bash file found here:
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
# 2) Add the following lines to your .bash_profile, be sure to reload (for example: source ~/.bash_profile) for the changes to take effect:
# Git branch bash completion
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
# Add git completion to aliases