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