previous | next
 
home  |  search  |  contact  
 
 
 Introduction 
 BitKeeper Concepts  
 Getting Started  
      - Before You Begin... 
      - Setting Up a Repository 
        . General Setup 
        . Repository Configuration 
      - Populating a BitKeeper Repository 
        . Importing Files 
        . Including and Excluding Files 
        . Adding Individual Files 
      - Working with Repositories 
        . Cloning A Repository 
        . Making Changes 
        . Checking In Changes 
        . Sharing Changes 
        . Backing Out Changes 
 Advanced Operations 
 Advanced Topics 
 Reporting and Data Mining  
 Appendix A: Installation 
 Appendix B: Administration 
 Site Map 
    
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


Home    Company    Products    How to Buy    Downloads    Contact Us    Documentation    Support    Site Map

© 1997-2005, BitMover, Inc.