Possible Duplicate:
How to detach the local git repository from its working directory?
i’m trying to have that in order to integrate it with dropbox, is there a way to have this?
what i want to achieve is have a different folder not in dropbox which will store my .git so that it won’t collide with different users.
The
GIT_DIR, .git by default, holds all the repository-specific data. You can set theGIT_DIRenvironment variable to essentially anything, even directories outside the current project.For example, from within the root of a typical Git project:
If you move the .git directory elsewhere…
… Git will no longer recognize the directory itself as a Git project:
Unless you explicitly tell it where to find the Git directory for this project: