Optimize git checkout.
Fix bug in checkout.
remore reset index from git clone.
Add createIndex to git index.
Comments.
Merge pull request #1912 from dart-lang/git_checkout

Optimize git checkout.