It is almost exactly 10 years ago that I released my first piece of open source software. The name of the project was [YaBB](http://www.yabbforum.com) and it was the first open source bulletin board/forum software written in Perl. Really -- Perl? Yeah, that was the lingua franca of the web at that time -- [CGI](http://en.wikipedia.org/wiki/Common_Gateway_Interface) baby! A few months after YaBB's initial release the team of contributors grew to about a dozen or so people. Our main collaboration tool was the YaBB software itself and e-mail. We did not use a version control system (who knew how to use CVS anyway). The main "repository" of source code was my hard drive, or even the FTP where the YaBB website was hosted. Some people had "commit" access i.e. had the FTP username and password and they contributed by directly uploading their changed files straight to the FTP -- any changes were live immediately. Once in a while we would make a release (in the beginning about a few times a day, later less frequently).
Outsiders could contribute by submitting patches to us, or send us modified files via e-mail. But frankly, that did not happen often. The barrier to contribute was pretty high. People essentially had to be invited to join the team and get FTP access to contribute. Looking back, I think this greatly reduced the amount of outside contributions. And in case you were wondering, the project is still around -- not very popular anymore, it seems -- but its successor [SMF](http://simplemachines.org/) seems to be doing pretty well.
Later on, as a _consumer_ of open source software I encountered this issue from the other end. Even if a project did use a version control system, like CVS or subversion, it was mostly useful to stay up to date with developments of the project team -- the people with commit access. If I made any changes myself, there was no light-weight way to contribute them back. Sure, I could make a patch and send it by e-mail, but that's a lot of hassle. Who does that? In effect, my changes only lived on my hard drive and ultimately disappeared when cleaning stuff up, after I didn't need them anymore.
About a year ago I started to use [Git](http://git-scm.com), a _distributed_ version control system. That means that, rather than having a centralized source repository, every developer keeps his or her own repository locally. Locally, but maybe also remotely someplace, so that others can access it. For open source, a popular place to host such remote repositories is [GitHub](http://www.github.com). I host [a number](http://github.com/zefhemel) of repositories at github myself.
__So, what would you _fork_ a project for, is that like a hostile take-over?__ Not really. People usually do it if they found some kind of bug, or want to add some kind of feature and publish those changes (or they want to [port the whole thing to Coffeescript](http://github.com/eegg/orm.js), lord knows why). They can do that by simply forking and pushing it to GitHub. If they want, the can send me a _pull request_, which is a request for me to pull in _their_ changes into _my_ repository, these changes can be merged into my main repository. I say _main_ repository, but there is really no such thing.
__So, does that actually work?__ Yes, it turns out that, indeed, it does. In the case of persistence.js, people have contributed bug fixes and the `persistence.migrations.js` plug-in (to handle changes in your data model) has been contributed by a "stranger". With stranger I mean somebody who did not request to be "part of the team" (there's not really a team), or to get commit access to anything. Just a somebody that happens to use persistence.js, and needed this plug-in. I have contributed fixes to a couple of projects started by others as well, such as [nodejs-mysql-native](http://github.com/sidorares/nodejs-mysql-native), [TouchScroll](http://github.com/davidaurelio/TouchScroll) and [congomongo](http://github.com/somnium/congomongo). Doing so was a breeze.
If your open source project is still running on subversion -- or lord forbid, CVS -- and you feel you do not get a lot of outside contributions, Git (or Mercurial for that matter) is definitely something to consider. [GitHub](http://www.github.com) is a great place to host your code, but if you need more space (you only get about 300MB for all your repos together), [Gitorious](http://www.gitorious.org) is excellent as well (you get virtually unlimited space there). Or use both!