Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PanjiNamjaElf/19d8cbdf47f938fb048f79bfbae1b2ab to your computer and use it in GitHub Desktop.
Save PanjiNamjaElf/19d8cbdf47f938fb048f79bfbae1b2ab to your computer and use it in GitHub Desktop.
Create an empty initial commit
git checkout --orphan temp_master
git rm -rf .
git commit --allow-empty -m 'Make initial root commit'
git rebase --onto temp_master --root master
git branch -D temp_master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment