The git code rollback of intellij idea

 

Obtain the commit code from the commit record

Find Reset HEAD

Fill in the submission code, pay attention to select "hard" here

 

Force committing code using the command line

git push -f

Guess you like

Origin blog.csdn.net/a0405221/article/details/107889138