Ask HN: How do I get started with version control?
I do mostly wordpress dev and design. Most php, css, xhtml, jquery but I am looking to advance and work on some web apps in the near future.
I have grown to appreciate version control and I know most people here think very highly of Github. However, I have no idea how to even get started with taking advantage of github or any form of version control. I would appreciate your input. FYI: I do my work with Coda on a Mac.
(
31 comments
| 25 points
| on HN
)
Once you learn about how VCS works, and have used something for a while, you'll be able to make an educated decision about switching to something else.
http://help.github.com/
If you want to understand how git works -- and therefore know what it can do -- see: http://ftp.newartisans.com/pub/git.from.bottom.up.pdf
Read the first 2 chapters, sign up for an account on GitHub and mess around with a public repo for a bit. Once you become familiar with adding, staging, commiting, etc. then you can either try out another VCS like Mercurial or SVN, or move onto Chapter 3 and get comfortable with branching and merging in Git.
There's also a very nice GUI for Git on OSX called GitX. It won't let you do push/pull on remotes but it's great to understanding what's happening to your repos outside of a CLI: http://gitx.frim.nl/
Then try this: http://net.tutsplus.com/tutorials/tools-and-tips/terminal-gi....
Dreamhost: http://wiki.dreamhost.com/Subversion
MediaTemple: http://kb.mediatemple.net/questions/143/Using+Subversion
I use Subversion for projects that I don't release open source. For me, that works better than paying github a monthly fee. Anyway, the point is that you shouldn't feel like git is the only option.
For private hosting I basically use bzr+ssh smart server on my host and launchpad for my hobby projects.
I think Git (or maybe Mercurial) is actually the answer to a different question: "What's the best version control system to use?" Starting with Git, particularly if you're not using OS X, which has better GUI tools for Git, seems to me to be a quick trip to insanity. To get started with version control, I think Subversion is substantially easier.
But it's not too hard to try both. Make an account on Github, create a repository, and try it out. If, by tomorrow night, you want to gouge your eyes out with a spoon, try Subversion.
(Subversion will definitely make you want to gouge your eyes out too, but not for a few months. Then you can switch to Git!)
http://whygitisbetterthanx.com/
The 5-minute tutorial[1] is a good start. You can also look at the quick reference[2], its quite self explanatory.
[1] http://doc.bazaar.canonical.com/bzr.2.1/en/mini-tutorial/ind...
[2] http://doc.bazaar.canonical.com/bzr.2.1/en/quick-reference/i...
Otherwise, I highly suggest Mercurial; it "just works", has a powerful feature set, and I like bitbucket.org better than github :)
The debate between bzr, hg (Mercurial), and git can become religious because all the tools are good.
* It's simpler (though admittedly the complex and confusing features of git really only become relevant when there are multiple developers).
* If you're going to work for corporate clients with their own repositories, chances are very high it's going to be SVN (it's possible to use both via the git-svn tool, but that adds more complexity)
That being said, git does have a number of very nice features that are useful to lone developers as well.
Git community book: http://book.git-scm.com
1. Install VisualSVN Server 2. Install TortoiseSVN
Use VisualSVN Server to create a repository and set permissions and TortoiseSVN to manage your files and commits.
For someone that hasn't use version control before, I think it's a really simple solution.
After that, read Pro Git: http://progit.org
http://www.projectlocker.com