Manpage logo

bk-new - (unknown subject)


NAME
bk new − add a file to the repository

SYNOPSIS
bk new
[−bcq] [−Mmode] [file ... ]

DESCRIPTION
The bk new command is used to initially place files under BitKeeper control.

A useful way to add new files in the current directory is:

bk gfiles -x *.[ch] | bk new -

When you want to add files in the current directory and all subdirectories, do the following:

bk -xr. new

# same as bk gfiles -x | bk new -

After the files are checked in, don’t be surprised to see that the files are no longer in your directory. The process of checking in files removes the files from the directory and places them in the SCCS directories. Once in the SCCS directory, the file can be retrieved with the bk get or bk edit commands. Most versions of the UNIX make command know about SCCS and will automatically check out files as they are needed.

OPTIONS
−b
force binary encoding with no keyword expansion; recommended for all binary files, but will work on text files as well (with a corresponding increase in the size of the revision history file).
−c
Use comments saved by a previous run of citool, fix, collapse, etc. It is an error if there are no saved comments.
−M
mode Set the permissions on the new delta to mode.
−q
be quiet.

SEE ALSO
bk-delta, bk-edit, bk-get, bk-ignore, bk-gfiles

CATEGORY
File
Common


Updated 2026-06-01 - jenkler.se | uex.se