git使用只撤销提交到缓冲区的文件:
1.git reset HEAD – . 撤销所有
2.git reset HEAD – filename 撤销特定目标
3.git rm -cached filepath 将文件从缓存中删除
2021-02-25
最新推荐文章于 2024-07-23 14:18:55 发布
git使用只撤销提交到缓冲区的文件:
1.git reset HEAD – . 撤销所有
2.git reset HEAD – filename 撤销特定目标
3.git rm -cached filepath 将文件从缓存中删除