Skip to content

Instantly share code, notes, and snippets.

View reitowo's full-sized avatar
😽
adventure

reito reitowo

😽
adventure
View GitHub Profile
@reitowo
reitowo / clearGitHistory.bat
Created April 5, 2021 13:30
Clear Git History
git checkout --orphan latest_branch
git add -A
git commit -am "Clear Git History"
git branch -D master
git branch -D main
git branch -M main
git push -f origin main
git branch --set-upstream-to origin/main main
pause