I'm trying to output a git log from another folder on the server without having to cd into it first.
git log /path/to/repo
returns
fatal: Not a git repository
For the life of me, I can't find t开发者_如何学运维he switch to tell it to operate on/in a different path than .
Thanks.
Try:
git --git-dir=/path/to/repo/.git log
精彩评论