restore the main eclipse git master branch

Error code when submitting git (my colleague presented the main branch error codes, and the main branch of show master, master, submitted before the number is no longer displayed on the git browser), you can roll back the recording error codes and submitted in accordance with the following steps :

1. Local git repository revert to the previous version

  • Select the right project - "Team -" Show in History
  • Select a version of Right - "Reset -" Hard (HEAD, Index and Working Tree)

2. Submit reduction of the current version

  • Select the right project - "Team -" the Push Branch - " Master
  • 取消 Configure upstream for push and pull
  • 勾选 Force overwrite branch in remote if it exists and has diverged
  • Click Next- "push

After a successful push, the main git branch recover, and the record is deleted before the error

Guess you like

Origin www.cnblogs.com/lostintheecho/p/12398269.html