git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git Completion after colon in push command

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
May 14, 2015, 18:52 UTC
Message-ID
<CAHd499Bn_bwbjFLJpcDFF5wE0Y6EgCYqJAQOZV=H-1XWmjb69A@mail.gmail.com>

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.
Message 1 of 1 in “Git Completion after colon in push command”
  1. Robert DaileyMay 14, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.