Archive for the ‘Git’ Category.
November 3, 2010, 9:27 pm
Usually it is easy to import a subversion repository into git. You just do this:
mkdir my_project
cd my_project
git svn init svn://repo.url/goes/here
git svn fetch
This will always fetch the repository you specified, but sometimes in svn your project actually depends on multiple repositories (ie: you use external references). The external reference will not be fetched and you will have to manually add it in somehow.
Did you really think it would be that easy?
October 17, 2009, 7:44 pm
I held out for a while, but I have officially become a Git convert. Now that TortoiseGit has reached version 1.0 I can’t think of a single way in which SVN is better that Git. There are a lot of advantages, but by far my favorite is the distinction between “commit” and “push”. In any version control system it is good to commit as often as possible so that you have better version history, but in SVN every commit gets pushed to the server. This means that if you want to commit, but you are not ready to give the code to other developers (ie: the code does not belong on the trunk of the master copy) then you have to make a branch. In SVN it can be a major pain to do everything in banches because of poor (not to mention slow) merging functionality. With Git you can commit as many times as you want, then when your code is ready for the trunk, you can push it to the master server. Much more civilized! If you haven’t tried Git yet then you should. You will be impressed.
Here’s an article on learning Git for SVN users: http://git.or.cz/course/svn.html