Git pull auto complete OSX

Posted by vodkhang on Super User See other posts from Super User or by vodkhang
Published on 2010-05-05T04:42:06Z Indexed on 2010/05/05 4:48 UTC
Read the original article Hit count: 476

Filed under:
|
|
|
|

Follow some instruction on this site http://denis.tumblr.com/post/71390665/adding-bash-completion-for-git-on-mac-os-x-leopard . I can do git auto complete for MAC OS. However, when I type git pull origin ma (for master), and then tab it takes a long time for git to auto complete to become git pull origin master . I think it connect to the server to get the branch, but I am not sure, is there any way to make it faster and only get the branch on local machine

cd /tmp
git clone git://git.kernel.org/pub/scm/git/git.git
cd git
git checkout v`git --version | awk '{print $3}'`
cp contrib/completion/git-completion.bash ~/.git-completion.bash
cd ~
rm -rf /tmp/git
echo -e "source ~/.git-completion.bash" >> .profile

© Super User or respective owner

Related posts about git

Related posts about osx