Tag Archives: git

Run Git commands on a different folder

–git-dir=YOUR_LOCAL_GIT_REPO/.git –work-tree=YOUR_LOCAL_GIT_REPO

From the following Stack Overflow

Run git commands on another folder

This is just a link to how to run the git commands like status and pull in another directory.  I used this to poke about on a Jenkins box where you only have script console access upon.