Last active
July 3, 2024 18:28
-
-
Save nicktoumpelis/9877404 to your computer and use it in GitHub Desktop.
Create an empty initial commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
@jherren π
Thank you :)
@gorskimarcin96 π
Nice!
Tnx π
thank you
Nice!
ππΌ
Tnx π
ππΌ
thank you
ππΌ
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that if you have an empty repository (just after
git init
or after cloning an empty repository), then this will suffice: