git checkout --orphan TEMP_BRANCH
git add -A
git commit -am "cleanup"
git branch -D master
git branch -m master
git push -f origin master
Created
November 18, 2021 12:04
-
-
Save kagarlickij/1343a4e2d02c0fadf1d87153cb2831d2 to your computer and use it in GitHub Desktop.
Clean history of Git branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment