Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
one.txt
two.txt
git add -A
git commit -m "message"
git add one.txt
git rm two.txt
我只想提交one.txt,因此我需要two.txt从索引重置。 怎么做?
git commit one.txt有效,但它不适用,因为可能是 100 个文件one.txt。
git commit one.txt
命令git reset HEAD two.txt重置索引中的文件并且不要在工作目录中触摸它。你需要什么!
git reset HEAD two.txt