Is there a way to execute Git commands against a repository without being in that repository?

For example something like this: git /home/repo log?

Please do not tell me to cd to it. I’m doing this via an exec call.

6 Answers
6

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *