2

I'm working on a Git repo for a client and I want to keep my client repos separate from my Apache htdocs folder. I want to work on the repo files here:

C:\Web\Clients\repolocation

And whenever I save a file there, I want the clone to be updated here:

C:\xampp\htdocs\clientrepo

Is this sort of thing possible?

2 Answers 2

3

You may be looking for directory Junctions which is similar to a linux symbolic link. Strictly, it is not 2 copies but the same copy referenced by 2 paths with separate permissions.(similar to how documents and settings points to users)

2
  • 1
    In the same vain, on windows 7 (well since Vista) you can use mklink to create a symlink
    – Matt
    May 23, 2011 at 21:58
  • This is exactly what I was looking for! I'm going to edit your answer to provide the syntax that works with my answer.
    – treeface
    May 23, 2011 at 22:18
0

Try Microsoft SyncToy. It doesn't maintain the copy in realtime, but you can set up a scheduled task to sync them on whatever schedule you like (at logon, every hour, etc.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.