Command to run git with git-dir
It would be handy to have a command that runs git
with the right git-dir and work-tree. (Of course, this is only really useful when git.intree
is False
.)
The command would do something like this:
git --git-dir="$hgroot/.hg/git" --work-tree="$hgroot" "$@"
So hg git push origin master
would run git --git-dir="/path/to/.hg/git" --work-tree="/path/to" push origin master
.
Edited by Carl Reinke