Saturday, September 30, 2017

Executing git commands on a different directory

1. The problem

So, you are on a specific directory, but would like to execute a git command on a different one.
I don't know whyl for me, it's just only that I'm lazy.

2. The solution

Here is your command's format git -C [directory] [git_command]

And here is a screenshot to make things more clear:

3. The reference

Further reference: https://stackoverflow.com/a/20115753/2486904

Cheers!

No comments:

Post a Comment