Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • doesn't work as expected — it works for me as expected. f.e., git log shows history for the repo in ./.git/, and git.home log shows history for the repo in ~/.git.home/. and completion of branches in both cases is working correctly. Commented Jul 18, 2015 at 10:20
  • hm, I can't reproduce. What do you see after last git log<space><tab>? What do you see for git --git-dir=.git log<space><tab> in ~/bash_completion? Commented Jul 18, 2015 at 10:33
  • 1. use jessie and "official" package bash-completion. 2. append these lines to ~/.bashrc and re-login. 3. cp -a /some/repo/.git ~/.git.home. 4. cd. 5. try git.home log, git.home status etc. Commented Jul 18, 2015 at 10:47
  • What do you see after last git log<space><tab> — hmm. in home dir this should cause the error, but i see branches from ~/.git.home Commented Jul 18, 2015 at 10:52
  • yes, cd, git.home log, git.home status works fine. but git log<space><tab> always shows git --git-dir=$HOME/.git.home for-each-ref '--format=%(refname:short)' refs/tags refs/heads refs/remotes and HEAD. i.e. git.home completion affects git completion Commented Jul 18, 2015 at 11:03