On Wed, May 05, 2010 at 06:54:33PM +0200, Tomas Carnecky wrote: > On 5/5/10 5:38 PM, Mahesh Vaidya wrote: > >I have a tree like > >/home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder > > > >I would like to issue come command say "git fetch" from any level of > >the tree. How can I deduce path of .git folder. Reason I need it as I > >some application configuration saved in .git/workspace.properties and > >I need to some action before git fetch. > > > > Take a look at: > $ git rev-parse --cdup Or even "git rev-parse --git-dir". -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html