当前位置:网站首页>After the idea code is developed, the code is submitted. If the branch is found to be incorrect after submission, how can I withdraw it

After the idea code is developed, the code is submitted. If the branch is found to be incorrect after submission, how can I withdraw it

2022-06-23 05:24:00 Grandma, why not learn java

First step :git Click on Reset HEAD

 Insert picture description here

The second step : Uncommitted parts , Enter the command you want to recall

 Insert picture description here

HEAD~1 Means to cancel the last submission
HEAD~2 Means to cancel the last two submissions
HEAD~3 Means to cancel the last three submissions ,
And so on

The third step : Resubmit again

原网站

版权声明
本文为[Grandma, why not learn java]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230309034336.html