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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s