Skip to content

Instantly share code, notes, and snippets.

@compleatang
Last active December 12, 2015 17:59
Show Gist options
  • Save compleatang/4805866 to your computer and use it in GitHub Desktop.
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…
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