无意间将错误的文件提交到了git。请问如何撤销?
$ git commit -m "Something terribly misguided" (1)$ git reset HEAD~ (2)<< edit files as necessary >> (3)$ git add ... (4)$ git commit -c ORIG_HEAD (5)
$ git commit -m "Something terribly misguided" (1)
$ git reset HEAD~ (2)
<< edit files as necessary >> (3)
$ git add ... (4)
$ git commit -c ORIG_HEAD (5)
©2017 神猿问答版权所有© 京ICP备16050413号-2