We all love example code and there’s plenty of code hosted on Github. Xamarin for instance has a large repository at https://github.com/xamarin/mobile-samples/. And of course Github makes it very easy to download such a repo by just hitting the big green button:
But right now I’m on the train, tethered to my iPhone and I just don’t feel like downloading the entire repo, all I want is the CoinTime game app!
Here’s how I solve this problem: instead of using Git, I use Subversion (SVN) which is supported by Github, too. Just open Terminal and run the following command:
svn checkout <URL>
where <URL> will be replaced with the actual project to clone.
In my example, CoinTime’s URL is:
To use SVN, we simply replace “tree/master” with “trunk” and the command becomes:
svn checkout https://github.com/xamarin/mobile-samples/trunk/CoinTime
And we have a subfolder named “CoinTime” with exactly that one project in it!