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.
我试图将我的工作分成多个提交。我已经这样做了:
git add --patch my_file # accepted, rejected, manually edited many hunks # ---> # now my silly mistake comes git add my_file git commit -m "some commit message"
我不应该添加该文件,因为我的更改已经在暂存索引上。我可以回到那个状态(--->如上标记)吗?
--->