Grabbing git log from another folder

I am trying to dump the git log from a different folder on the server without using cd first.

git log /path/to/repo

      

returns

fatal: Not a git repository

      

Throughout my life I cannot find a switch to tell him to work in a different way than.

Thanks.

+2


a source to share


1 answer


Try:



git --git-dir=/path/to/repo/.git log

      

+4


a source







All Articles