CVS中存储二进制文件的方法

cvs中存贮文本文件和二进制文件的命令有所差异,需要特别注意,以前居然不知道这点,犯了错,特此纪录下存储二进制文件的方法与大家共享。

例子:
Here is an example of how you can create a new file using the '-kb' flag:

法一:
$ echo '$Id$' > kotest
$ cvs add -kb -m"A test file" kotest
$ cvs ci -m"First checkin; contains a keyword" kotest

If a file accidentally gets added without '-kb', one can use the cvs admin command to recover. For example:

法二:(补救法,即如果在cvs add中忘记加option -kb,则可用下面的方法进行补救)
$ echo '$Id$' > kotest
$ cvs add -m"A test file" kotest
$ cvs ci -m"First checkin; contains a keyword" kotest
$ cvs admin -kb kotest
$ cvs update -A kotest
# For non-unix systems:
# Copy in a good copy of the file from outside CVS
$ cvs commit -m "make it binary" kotest

猜你喜欢

转载自qhyw.iteye.com/blog/962463