Last active
December 12, 2015 17:59
-
-
Save compleatang/4805866 to your computer and use it in GitHub Desktop.
This is useful if you want to track your dropbox or gdrive files with git but do not want all the git files to be taking up the space and sync bandwidth of dropbox/gdrive. It assumes that your project is already built.... credit to @braitsch's reply to this SO question: http://stackoverflow.com/questions/5408475/moving-a-git-repository-up-one-hi…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd <destination> | |
mv <source>/.git ./.git | |
git config core.worktree /absolute/path/to/project-files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment