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?

link|improve this question
feedback

2 Answers

up vote 3 down vote accepted

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)

link|improve this answer
1  
In the same vain, on windows 7 (well since Vista) you can use mklink to create a symlink – Matt May 23 '11 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 '11 at 22:18
feedback

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.)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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