2010-07-27 54 views
3

您好,我们正在使用CVS并定期进行开发。我大部分时间只在三个文件上工作。我是否还必须提交文件夹中的所有更改?是否可以选择必须提交的文件,而不允许CVS提交仍在开发中的文件?我们可以提交单个文件吗?

与文件1,文件2和文件3一样....我在一天的大部分时间使用文件1,检查日志并在文件2中出现问题,因此我在文件2中做了一个快速更改并决定提交。但是,文件中的代码仍在开发中,只想提交对file2所做的更改。那可能吗?

回答

6

是啊,只要使用

cvs commit file2 
1

http://cvsbook.red-bean.com/cvsbook.html

摘自 “在这里,我们犯的名字一个文件和两个推断:”

floss$ cvs commit -m "print goodbye too" hello.c 
Checking in hello.c; 
/usr/local/cvs/myproj/hello.c,v <-- hello.c 
new revision: 1.2; previous revision: 1.1 
done 
floss$ cvs commit -m "filled out C code" 
cvs commit: Examining . 
cvs commit: Examining a-subdir 
cvs commit: Examining a-subdir/subsubdir 
cvs commit: Examining b-subdir 
Checking in a-subdir/subsubdir/fish.c; 
/usr/local/cvs/myproj/a-subdir/subsubdir/fish.c,v <-- fish.c 
new revision: 1.2; previous revision: 1.1 
done 
Checking in b-subdir/random.c; 
/usr/local/cvs/myproj/b-subdir/random.c,v <-- random.c 
new revision: 1.2; previous revision: 1.1 
done 
floss$ 
+0

喵,所以语法是cvs commit filename? – sai 2010-07-27 21:56:39

0

或者别人说了什么(这是正确的答案),而不是阻止提交更改,为什么不创建一个实验性的分支?

相关问题