I want to remove my 4th commit from last.
|git log -6||to check last 6 commits|
|git rebase -i HEAD~4||to rebase last 4 commits|
|i||i to select row
remove the entire line of commit to be deleted
: to enter text in cmd
w to write and q to escape
|git push –force origin master||to push the revert|