Frontend Scrapbook

Notes that make a difference

Revert a merge commit which is already pushed to remote

By admin

on Tue Aug 18 2020

git checkout feature/dev

git reset #commit-hash ( hash of the previous to merged commit )

git status ( will show all the changes part of the merged/wrong commit )

git reset –hard ( will revert all those changes )

git push -f origin feature/dev ( -f force pushes the branch to remote. Note that the remote history is clean at this point )