search

Home  >  Q&A  >  body text

May I ask why this problem occurs when pressing tab in git push?

Excuse me, why does this problem occur when pressing tab on git push??

我想大声告诉你我想大声告诉你2777 days ago786

reply all(2)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-24 11:33:40

    This is because the bash/zsh completion function is implemented by calling the completion function, which means that the completion function can be customized. Please refer to writing a Bash completion script.
    Now your problem is bash/ Functions such as __git_remotes are not loaded when zsh is running. Bash automatically completes the directory according to your own system. You can manually load these files. Such as ./usr/share/bash-completion/ completions/git.__git_remotes 等函数, 根据你自己的系统 bash 自动补全目录,可以 手动 加载这些文件. 如 . /usr/share/bash-completion/completions/git

    As for why this problem occurs, I don’t know.

    reply
    0
  • 迷茫

    迷茫2017-05-24 11:33:40

    git push or //pressing tab should automatically complete the association. The complete one is origin

    reply
    0
  • Cancelreply