4 ms·
With git, you can use combination of GIT_WORK_TREE and GIT_DIR environment variables (or the equivalent params to git command) to specify where the work tree an
by senko 18y ago
With git, you can use combination of GIT_WORK_TREE and GIT_DIR environment variables (or the equivalent params to git command) to specify where the work tree and the .git dir reside.
Downside of this is that you have to set up env separately for each project (if you have multiple projects), basically wrapping git.
Another quick'n'dirty solution could also be to just have everything in one subdirectory of git working tree (since git doesn't pollute every directory like .svn does). This would also work with bzr or hg.