Originally published at: http://www.howtogeek.com/163824/it-geek-how-to-keep-files-with-the-same-name-in-sync/
You have most likely heard of services, such as Dropbox, which are used to keep files in sync across multiple machines. However, what if you want to perform this operation on a single machine? That is, keep files which have the same file name in sync across the machine such that when one of the files change, they are all updated.
A version control tool like SVN or even CVS works very well for this. You can even automate the updates, only pulling a certain branch or tag, then putting things appropriately in a test or production grouping, allowing you to easily test a particular version, then mark it as ready for production and having it easily distributed, with a single source of truth in the version control server.
I tried a version control system, but for a one man development team this turned out to be extreme overkill. I found that this script (combined with a couple of others I used for archiving releases) works very well when you work on a large number of small development projects.
Couldn't this be solved using symlinks? If you find yourself copying the same file to many different locations (that aren't for backup purposes), you can just make a symlink to the one file.
Interesting idea which I just tried in Visual Studio. Unfortunately, it doesn't work (kept throwing reference errors) - you have a have a full physical copy for the project to be able to use the file.