Skip to content

Instantly share code, notes, and snippets.

@atupal
Created July 4, 2013 13:36
Show Gist options
  • Save atupal/5927782 to your computer and use it in GitHub Desktop.
Save atupal/5927782 to your computer and use it in GitHub Desktop.
How to get git to follow symlinks
what i did to add to get the files within a symlink into git (i didn't use a symlink but):
sudo mount --bind SOURCEDIRECTORY TARGETDIRECTORY
do this command in the git managed directory. TARGETDIRECTORY has to be created before the SOURCEDIRECTORY is mounted into it.
works fine! that trick helped me with subversion too. i use it to include files from an Dropbox account, where a webdesigner does his stuff.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment