Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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)

share|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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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