How can I remove the last 3 commits that I made to my repository from the history? And with history, I mean both the local history, and the public history from GitHub.
Asked
Active
Viewed 36 times
0
-
@NoNameProvided that guy didn't push the changes, I did. – Karlos Dec 01 '21 at 15:11
-
1You need to force push `git push --force` to overwrite your remote branch. – NoNameProvided Dec 01 '21 at 15:11
-
Is the repo / the branch shared? If not, go for @NoNameProvided's solution. – Romain Valeri Dec 01 '21 at 15:37
-
https://stackoverflow.com/search?q=%5Bgit%5D+remove+last+commits – phd Dec 01 '21 at 16:42