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
# Create a new orphan branch (unrelated to the current branches) | |
git checkout --orphan new_branch | |
# Add all files to the new branch | |
git add -A | |
# Make the initial commit | |
git commit -m "Initial commit" | |
# Delete the old main branch locally (replace 'main' with your branch name) |