1 - git checkout --orphan latest_branch
2 - git add -A
3 - git commit -am "first commit"
4 - git branch -D main
5 - git branch -m main
6 - git push -f origin main
macleysousa / restart-branch Goto Github PK
View Code? Open in Web Editor NEWHow to reset an branch