This is a rewrite of an earlier talk about source control.
In order to track changes of your code you use source control. In the simplest setup, source control answers what your source code looked like before you accidentally broke but it looked like it was working.
In a similar sense you might want to store data about your customers in order to find it again. Who had a sale with customer A?
If you are a single dev.
Less technical answer:
The dev team are familiar with SVN and have an effective work flow in that tool.
When you branch. It’s actually simpler to merge using git svn … but that adds the additional complexity of having to use git svn with svn. This can be ok if someone on the team can be assigned as an integrator that does the merges.
Can be an easy sourcesafe like experience if you are a single developer. If you have lots of developer, it’s easier to work together using git.
When mentioning git, you cant avoid mentioning github. Git is version control. Github is hosting for that version control. Github has added some nice features as well.
Not connected to the corporate network at the moment? Do you work on a laptop (not connected to internet 100% of the time)? Do you like to continue browse the history and create commits? If yes, then consider using a dcvs.
Many open source projects have migrated over to github since it enables easier collaboration with untrusted developers. The mechanism at work is called Pull request.
In many closed source project you pay for support and eventual bug fixes. In an open source project you pay with developer time. Sometimes you have a mixed model (you pay for fixes and support but it’s open source).
Any public library hosted on github can be forked if you have a github account.
Why is this sweet? Most of the time the devs behind the library does not care that much about fixing stuff relevant for you. If you fork the library and fix the problem you can send a Pull request with the changes. They might be rejected. They might be ignored. If you are lucky the devs will give you hints to improve the code (this improves the code and your skills).
The command line version of git can be a bit complicated. However, when used by a single dev you can use Github for windows in order to work in a manner similar to sourcesafe (simple gui).
A more advanced gui is the Atlassian SourceTree.
There are several providers of git hosting. The ones I’ve been using are the following:
But there are several others. You could also self host with Gitblit or GitLab or others.
Do you want to send a comment or give me a hint about any issues with a blog post: Open up an issue on GitHub.
Do you want to fix an error or add a comment published on the blog? You can do a fork of this post and do a pull request on github.