I’m trying to setup a version control for my one man project. My project files are in sync thanks to live mesh (but I could be using dropbox for that matter), between my laptop, my home pc and my office pc. I’m now using Netbeans with local file history. Sometimes it helps to revert to a previous state of one file. But imagine a situation when multiple files have problems. Correct me if I’m wrong but I would have to go to every file and revert to previous “safe” state. I don’t like this approach, so I’m considering using a version control between SVN and GIT.
I have some previous experience with SVN (TortoiseSVN) and I know that I can create a file:// repo.
So, what a want to do is setup a VCS inside my synced folder just to have the ability to “revert” to a previous version if something goes wrong. Since everything’s been synced to all computers, I wouldn’t ever need to run an update.
The file tree organization would be the following:
C:…SyncedFolderMyProject
Inside MyProject folder are all the project files plus a directory that has SVN or GIT info of my project (the repo/master).
What VCS is best for this situation: SVN or GIT? Does SVN need to store all files from HEAD revision, thus “duplicating” all my project inside my synced folder? Does GIT eliminates this problem? Is this the best approach?
1
What VCS is best for this situation: SVN or GIT?
Does not matter at all. If you sync directory tree between nodes you’ll have
- 3 working copy
- 3 repositories
in both cases.
Pure DVCS solution may be smaller in terms of total size, because it doesn’t store WC-metadata in .svn folder(s) inside working copy, but – GIT handle binary data extremely worse, than Subversion (or Mercurial)
6
I use GIT, Git Extensions http://code.google.com/p/gitextensions/ (which installs git on windows) with free private repo from https://bitbucket.org/ . I use bitbucket to transfer source code between my workstations and also keep my code offsite (for backup purposes). Just need to make sure you push the latest changes when you are done so you can pull them when you get to the new workstation.
Since with GIT, each user has the full repo on their machines, I’m not too worried about bitbucket losing my data. Just to be safe, I also sync my repos to google drive.
probably better ways to do this but it’s working so far for me
7