unfriendly commands: git dealing with a repository in other directory
mercurial
$ hg -R foo/bar st
git
$ git --git-dir=foo/bar/.git --work-tree=$(pwd)/foo/bar status
[ show comments ]
blog comments powered by Disqus
mercurial
$ hg -R foo/bar st
git
$ git --git-dir=foo/bar/.git --work-tree=$(pwd)/foo/bar status