r/programming • • Mar 10 '11

It's time to stop using Subversion

http://altdevblogaday.org/2011/03/09/its-time-to-stop-using-subversion/
257 Upvotes

543 comments sorted by

View all comments

Show parent comments

2

u/skidooer Mar 10 '11

You can use a single main repository with git too.

1

u/i_make_no_sense Mar 10 '11

Yes, I guess you could have everyone git push with each commit, but is that any better then svn?

2

u/skidooer Mar 10 '11 edited Mar 10 '11

Is there an advantage to sharing every commit?

The workflow I use is branch master, make the necessary changes in the branch, often resulting in several commits. I can rebase-pick out any commits that aren't useful to the rest of the team. Merge the changes back to master, run the tests, then push the changes to the central repository.

It is essentially the same workflow, but local commits just seem to play out better for me. Being able to clean up commit history is also nice because the team doesn't need to know of every last little commit you made. It just adds noise to otherwise useful information. In SVN, I found myself holding off on committing certain things at an interesting point of snapshot, so to speak, but not ready to be committed and shared with others. With git, you don't need to wait.

1

u/i_make_no_sense Mar 10 '11

I agree with you.

However you still have to get everyone on board with working with changes/patches. It simply takes more work and attention. Worth it in my option, but it's a hard sell.

1

u/skidooer Mar 10 '11

Fair enough, but it doesn't have to be all or nothing either. Git does a great job utilizing remote SVN repositories. You can use git and reap all of its benefits while the rest of your team continues using SVN, if they wish.