开发者

Grabbing git log from other folder

开发者 https://www.devze.com 2022-12-28 21:19 出处:网络
I\'m trying to output a git log from another folder on the server without having to cd into it first.

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
0

精彩评论

暂无评论...
验证码 换一张
取 消