I have setup git autocomplete using the git-autocomplete.bash
file which works for standard commands and simple aliases (co = checkout
), but I have a longer alias defined in my .git-config
file that I would like to autocomplete branch names on and I cannot find how to do this.
I am on Windows Server 2012 R2 running git 2.10.2.windows.1
My alias looks like this:
mstage = "!git checkout stage && git pull && git reset --hard && git merge $1 --no-commit"
where $1
is a branch name - I'd love this to autocomplete