How can I cancel an already loaded commit with its changes to a remote repository? In my case, this is the last commit. This last commit is - merge. git revert in this case does not work!
- Have you already thrown this commit on a githab? - Total Pusher
|
2 answers
You can make get reset to a certain state, to a commit to your commit, and then do git push - - force, but be careful, force will erase all commits after that to which you reset
|
Try rolling back the commit:
git revert { commit_id } Enter the commit ID without {}.
- error: commit ae2f617b8cd9c4f8eb9df284d28339e1bc1b83fe is a merge but no-m opti on was given. fatal: revert failed And what if a commit is a merge? - Sturm Tiger
- I think I found a solution to your question at this link: stackoverflow.com/questions/7099833/… - Zicrael
|