0

I may just be thinking about this problem the wrong way and missing an obvious solution.

I have multiple copies of the same files in several places on my computer that I edit via Sourcetree, Visual Studio and Notepad++. All of these files are from the same module built into different projects, and I often find myself having to use winmerge to recombine them after changes are made to the same file in two separate locations. Is there any tool or method I can use to keep all the files in sync or make them reference one another?

  • 2
    Is there any reason you can't keep the module separate and import it into the other projects as needed? – Yitzchak Jul 24 '14 at 19:41
  • 1
    Source control may help. – Dave Jul 24 '14 at 19:44
  • I might be able to edit the files all in one location, but with multiple projects on Sourcetree, and multiple coworkers constantly editing them, keeping the modules in them all in sync has turned into quite a problem. – James Gould Jul 24 '14 at 19:47
1

Make them all hardlinks: one file on disk, many references wherever you want.

| improve this answer | |
0

Source control software maintain links to share a file between several projects. If you make changes in one project, changes will be automatically propagated to other projects.

Sinne you are using VisualStudio, please check whether your license covers Microsoft SourceSafe which is a easy to use source Control software. Otherwise take a look on open source products such as SVN.

| improve this answer | |

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.