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.
我是一名cs学生,我的作业中有一个问题:
人 A 对他的程序进行了 2 处更改 1. 未命名接口:IFoo->IBar,类名已更改:Foo->Bar 2. 将函数 blob() 添加到他忘记提交的接口。而且他不想要一个大的提交,而是2个单独的提交。
他怎么办?他应该使用哪个命令?
谢谢大家。
git add -i将打开一个交互式 shell 并允许您选择要暂存的文件中的哪些行。更改后,您可以提交它们。
git add -i