Categories
General

Delete Git History

#1 – Terminal

Git Rebase <commit-hash>

#2 – from vi/vim do the following changes – replace ‘pick’ by ‘drop’

#3 – Commit Current Change

git commit –allow-empty

#4 – Continue Rebase for cofirmation of what you want to see

git rebase –continue

#5 – Command line – Push to your repository

git push -f

#6 – Final Screen ‘bbb’ removed

 

 

Leave a Reply