我错误地使用命令将文件添加到git:
git add myfile.txt
我还没跑git commit.有没有办法撤消这个,所以这些文件不会包含在提交中?
git commit
到目前为止有48个答案(有些已删除).除非您有一些新信息,否则请不要添加新的.
git version-control git-commit git-stage
git ×1
git-commit ×1
git-stage ×1
version-control ×1