Skip to content

Tried to deploy React app (with mistake), now need to revert to last successful commit #22256

Discussion options

You must be logged in to vote

Hi and welcome @free4moriginal ,

Let’s see if we can help you out. As I understand, the version that is currently on your remot (is it GitHub?) is wrong, while your local version is correct. You can override the remote version with your local version during pushing using the  –force tag.

An example: if the affected branch is  master , you might want to  git push --force origin master to force the remote to adhere to your local changes. Just make sure to properly read and understand the warning below before you force-push anything.

If you have more questions, let us know.

WARNING: IF YOU, FROM ANOTHER MACHINE, OR A CO-WORKER FOR EXAMPLE MADE CHANGES IN THE MEANTIME ON THE REMOTE YOU WILL D…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants