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.
在 Eclipse 中,我将一些更改的文件添加到 git 索引中。它们正确显示在分阶段更改树元素中。但是当我想提交索引中的更改时,提交操作是灰色的。
那么,我该如何做git commit现在命令行上会做的事情。只需提交之前添加的内容。
git commit
尝试通过“Git Repositories”视图提交。
但是,如“ Egit Commit ”中所述,它将列出所有修改过的文件,无论是否已暂存。 (像一个git commit -a)
git commit -a
也尝试分阶段视图: