84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我想撤销git add操作,所以git reset --hard HEAD
git add
git reset --hard HEAD
结果回到了上一次提交的位置。我该怎么做才能找回未提交的修改文件...
另外下次我会用git rm --cached,羞愧 (:
git rm --cached
小伙看你根骨奇佳,潜力无限,来学PHP伐。
You can try git reflogCommand:
git reflog
If you accidentally use git commit --amend as git commit to overwrite the current commit, or accidentally destroy the current commit (reset --hard). All can be restored through git reflog. https://github.com/hokein/Wik...
git reset also has other parameters, such as soft|mixed, you can take a look
You can try
git reflog
Command:git reset also has other parameters, such as soft|mixed, you can take a look