Git – Remove commit from history
If it’s only on your local PC (or noone checked out your changes): Use: git log to find the commit you want to remove. Copy hash (the long sqeuence like: e8348ebe553102018c…). Use: git rebase -i [hash]~ : for example git rebase -i e8348~ Just remove the commit you don’t need and save the file. Interactive … Read more