Reputation: 733
On my main
branch I have several working versions of my code. Last commit (ref as V3
) has a major bug. To fix it I reverted to V2
and updated relevant feature properly. I wish to know to how push my commit to V3
will be totally ignored.
* 8741be8 (HEAD -> main) fixing crashes - not final
| * 086c504 (origin/main, origin/HEAD) after revert
|/
* 9d1e3d7 update to bootlog
* 8dfe4a7 fix MQTT resets
* 4f714a1 b4 update windows
* 65ab05a update to avoid disconnects and resets
* 5e4b5eb from linux
* f5f1126 after protangoues resets
* f5f3bb7 first commit
Upvotes: 0
Views: 321
Reputation: 10996
As you stated, you reverted V3
, so V3
does not exist anymore on your local main
branch.
Is it right? If yes, you have to rewrite the history on server (be carefully), by the following commands:
git checkout main # Optional, if you are on another branch
git push --force origin main
Upvotes: 1