From: Siraaj Khandkar Date: Sun, 5 Jan 2020 05:38:10 +0000 (-0500) Subject: Fix unintended deletion of current directory X-Git-Url: https://git.xandkar.net/?p=git-cheat-sheet.git;a=commitdiff_plain;h=64e53fa70692011377bd35449e43855e0d6bb39b Fix unintended deletion of current directory we just want to remove the files --- diff --git a/README.md b/README.md index 7b84aca..61f2b7a 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Inserting a new root commit --------------------------- ```sh git checkout --orphan $TEMP_BRANCH -git rm -rf . +git rm -rf * git commit --allow-empty -m $INIT_COMMIT_MSG git rebase --onto $TEMP_BRANCH --root $MAIN_BRANCH git branch -d $TEMP_BRANCH