Search This Blog

Wednesday, 23 September 2015

GIT vs SVN - "If you can't explain it simply, you don't understand it well enough"

Still waiting for someone to explain me in simple terms why GIT is better that SVN ...


One of my colleagues explained me the following scenario: let's assume you are using SVN and you are working under a specific branch - with lot of local changes not yet committed. And you are the tech lead - you have to do a code review on another branch, where a specific use case have been implemented. Using SVN, you would have to checkout that 2nd branch under a separate directory (and potentially, you will get a tone of such directories)

Well,  GIT doesn't need separate directories  - when you switch from one branch from another, same local directory is used. Plus you can save temporarily all uncommitted changes (that's staging), switch to another branch, do your job, switch back and resume your previous work. Nice, isn't it ?

PS2: Never stop learning. Even if you don't understand it for the moment (this is for me, not for you ...)

No comments:

Post a Comment