accidentally I pushed the changes before completely finish it.
now I want to revert the changes.. how can I do that?
accidentally I pushed the changes before completely finish it.
now I want to revert the changes.. how can I do that?
There are quite a few methods in the post that @carolina pointed to.... however, I do not see the simplest 2 if it is a feature branch that no one else is working on:
git push some-remote :the-branch # make sure to use the colon
git push some-remote -f $( git merge-base HEAD the-upstream-branch ):the-branch
That will push the revision from the upstream branch that the current branch started from.