Skip to content

Instantly share code, notes, and snippets.

View MattyMead's full-sized avatar

Matty Mead MattyMead

  • Revival Tech
  • London, United Kingdon
View GitHub Profile
@MattyMead
MattyMead / Git branch bash autocomplete *with aliases*
Created August 8, 2018 10:29 — 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