threads / discuss / 39339

Git Completion after colon in push command

Subject: Git Completion after colon in push command

## tl;dr

One message between May 14, 2015 and May 14, 2015.

replies: 0people: 1as markdown or json

Robert Dailey· May 14, 2015, 18:52 UTC · lore

I Googled around for an answer to this but I'm concerned maybe it's an issue with my environment. Perhaps you guys can help me out.

I'm using Git 2.4.1 on Windows through mintty terminal. I grabbed the latest git completion shell script from here: https://github.com/git/git/blob/master/contrib/completion/git-completion.bash

I source it manually in my .bashrc file.

Tab completion works for ref names everywhere except for push. Suppose I have a branch named "releases/1.2.3"

When I do this:
$ git push origin :rele

Right at the end of that, I press TAB expecting it to complete the ref I'm pushing to delete. But it does nothing. Any reason for this? I recall this used to work a few months ago before I upgraded.

Thanks in advance.

← back to recent threads