Skip to content

Instantly share code, notes, and snippets.

@mbijon
Created Feb 8, 2014
Embed
What would you like to do?
git checkout/clone over the top of an existing set of files
git clone --no-checkout repo-address subdir/tmp
mv subdir/tmp/.git subdir/.git/ # final "/" important
rm -Rf subdir/tmp
cd subdir
git reset --hard HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment