|
|
|
Adding Individual Files
If you have just a small number of files with which to populate a
new BitKeeper repository, then the bk import command might
be overkill for your purposes.
A more appropriate command is bk new, which will place new
files under BitKeeper control.
If given one file name, bk new will check in that file.
When checking in multiple files in a directory, bk new can
be combined with the bk sfiles command to checkin multiple
files in a directory as follows, but be careful with this use of
the command, because it will check in anything, including a.out,
*.o, core, etc:
 |
bk sfiles -x *.[ch] | bk new -
|
If you have a large number of files to add to an existing package,
an alternative to import is to generate a list of the files, edit
the list to make sure there are no unwanted files (such as object
files), and then check in the files from the list.
For example:
 |
cd new_package
mkdir new_files
cd new_files
cp -rp ~/files_to_import .
bk sfiles -x . > /tmp/LIST
vi /tmp/LIST # remove any you don't want
bk new - < /tmp/LIST
|
|