# Create - Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH
# Add all the files:
git add -A
# Commit the changes:
git commit -am "History Flushing"
# Delete the old branch:
git branch -D master
# Rename the temporary branch to master:
git branch -m master
# Finally, force update to our repository:
git push -f origin master
Monday, 12 October 2020
Delete Git History
Labels:
Git,
Git history
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment