Use git to get the latest source code only

November 27, 2009 โ€” Say you want to get just the source code of a git repository without all the history(without the ".git" directory). Use this:

git clone --depth 1 git://github.com/breck7/brecksblog.git

View source