Yes, it’s an anti-pattern. For a repo with one contributor, meh. git checkout main git reset --hard <better_branch> git push -f origin main Thanks to Brandon Howard