DWQA Questions › How to run git from current location to some other location? 0 Vote Up Vote Down kundan roy asked 4 years ago Solution: git –git-dir=/var/www/html/api/.git/ –work-tree=/var/www/html/api/ pull Suppose you are in home directory and want to run git in other folder from current location then follow the above pattern to runĀ git.