Created
July 12, 2022 12:08
-
-
Save nisrulz/ef7f7f579583025deb8d0c4fc6ee50cd to your computer and use it in GitHub Desktop.
Create an empty branch and add an empty commit to it.
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 switch --orphan <new branch> | |
git commit --allow-empty -m "Initial commit on orphan branch" | |
git push -u origin <new branch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment