As I stated previously, I am sold on DVCS, and today it just got better.
I came across a situation where I needed to share highly experimental code with a teammate. There was no way I could check this code into our normal repo, so what first pops into your head: email (strongbad style). You've been here and don't pretend you haven't used email. Oh yes the wonderful land of emailing around jar or zip files repeatedly.
Emailing source code around stopped today. Instead I got on the phone with Ron Alleva who helped walk me through the simple git commands to create my own local master repo. It was so simple it was ridiculous.
Here are the steps to create and share hack code in minutes
- install git
- cd to the folder you wish to share
- run git init
- run git add .
- run git commit -a
- Have your teammate clone it by running git clone ssh://user@host/path/to/repo.git/