Git: Get the HEAD of a repository with the .git directory
- by Patrick Klingemann
I'm looking for a single command that effectively does the following:
git clone git://github.com/rails/rails.git --depth=1
rm -rf rails/.git
Is there a command that does this?