git and git projects subdirs

if you want to work with git with two projects in two subdirectorys you need to set BOTH git-dir and work-tree

$ git --git-dir=subdir1/.git --work-tree=subdir1 status -s
$ git --git-dir=subdir2/.git --work-tree=subdir2 status -s
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