I've been using Git about a year now, immediately after creation my github account. I got really nice impression of using this tool, but still - on my primary job at e-conomic we are using SVN as primary VCS tool. You are probably aware about all good thing with Git. If you still don't you might check out these great answers on Stackoverflow. In short - Git adds benefits, but it adds complexity as well.After a bit evaluation I found that those benefits are worth to stop using SVN and switch to Git. But, if you ask your colleagues "Are you ready to go with Git?" you would probably hear "No!". It is clear why, people are getting used to current tools.. infrastructure are build around them. And switching from one VCS to another seemed as destruction of building fundament for many developers. Fortunately, Git has a killer feature that other DVCS does not have! And this feature will help you to smoothly start with Git even if your company is still using SVN as standard. Yes, I'm talking about git-svn. Believe me, it is amazing! I always have a little distrust for such kind of integration tool, but so far it works as charm. So, I'll give you a small instructions that will make you possible to get to your office tomorrow and start use Git as your own VCS.
Setup you environment Download and install msysgit
Setup local user information, example git config --global user.name “alexander.beletsky”
git config --global user.email “alexander.beletsky@gmail.com”
If you are on Windows and doing only-Windows development, it is recommended to turn off autocrlf
git config core.autocrlf falseChecking out code from SVN repository Run git clone command (it might take some time, depending on repository and history size)
git svn clone https://mysvnserver/repoAs clone finished, you will see that new folder repo created with the content of your SVN repository. Now, this folder is actually Git repository + you local sources copy. Try to run git log inside the repository and you will see that all your history are there!
Let's do some workNow, suppose you start to work on some bugfix. By default, git repository contains one branch called master. Good style is do not do direct commits into master at all, just keep it as synchronization point between SVN repository and your local repository. So, to do actual job you to create branch.
Read more: Javalobby
QR:
Setup you environment Download and install msysgit
Setup local user information, example git config --global user.name “alexander.beletsky”
git config --global user.email “alexander.beletsky@gmail.com”
If you are on Windows and doing only-Windows development, it is recommended to turn off autocrlf
git config core.autocrlf falseChecking out code from SVN repository Run git clone command (it might take some time, depending on repository and history size)
git svn clone https://mysvnserver/repoAs clone finished, you will see that new folder repo created with the content of your SVN repository. Now, this folder is actually Git repository + you local sources copy. Try to run git log inside the repository and you will see that all your history are there!
Let's do some workNow, suppose you start to work on some bugfix. By default, git repository contains one branch called master. Good style is do not do direct commits into master at all, just keep it as synchronization point between SVN repository and your local repository. So, to do actual job you to create branch.
Read more: Javalobby
QR: