X-Git-Url: https://git.xandkar.net/?p=git-cheat-sheet.git;a=blobdiff_plain;f=README.md;fp=README.md;h=61f2b7a6c5953c4d383f0584fb2cd4999dd0b02a;hp=7b84acac11fc3609e283d6e89487918947178427;hb=64e53fa70692011377bd35449e43855e0d6bb39b;hpb=4b6ac450277d33471600ae525a126ece4491d97b 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