Talk:Git

From ArchWiki
Jump to: navigation, search

Merge with Gitweb

As said, the sections to get git working over ssh, http and the git protocol should in my opinion be placed in this article.

Bash completion

Unless I'm mistaken, bash completion comes with git now so the instructions should be changed to simply:

source /usr/share/git/completion/git-completion.bash

right?

Maybe note that it's also possible by installing bash-completion? --Xerdomii

The default /etc/bash.bashrc (from the bash package) sources /etc/bash_completion (optionally from the bash-completion package) if it exists. The bash_completion script intern sources files in /etc/bash_completion.d/ if they exist. With Arch's git package a copy of /usr/share/git/completion/git-completion.bash ends up in the /etc/bash_completion.d/ directory. So, if you have the bash-completion package installed, completion for git should work automatically as soon as /etc/bash.bashrc is processed. James Eder 13:27, 20 June 2011 (EDT)