Eclipse undo git push submitted

Objective: To undo the most recent code delivery

 

 

 

 

The first step: the local repository to restore the previous version,

To do: Select the Right Project - "Team -" show History 

 

 

 

Circled in red on the map is the version that will be restored.

Select the red mark --- "Right ---" Rest --- >> Hard (HEAD, Index and Working Tree)

 

 

 

Now local code has returned to the previous version, there is no change in git

 

 

 

 

At the same time the project has prompted git code updates

 

 

 

 

The next step is to take the local git revert to the version submitted

Step Right selected item - "Team -" Push Branch ' master' ...
Note: Do not select Push to Upstream

 

 

 

 

 

 

 

 

 

 

Submitted online records disappear

 

Guess you like

Origin www.cnblogs.com/feathe/p/11846969.html