Run Git Commands From Any Dir
Git has one feature that I find irksome; you have to be in the directory with the Git repository to run commands against it.
...Or do you?
Git provides the -C
flag for this scenario. Follow it with a directory name, and Git will execute your command as if it was run from <path>
.