[Getting Started]  [How To...]  [Browser Tips]  [Glossary]  [Road Map]  

Opening Files for Add

To add new files to a Perforce depot, first run open for add, then run submit. You can open files to be added in the current path, or in a subdirectory of the current path, by choosing Run->Open files for add... in the control panel of the Path Browser page.

The open for add command doesn't create new files -- -- it just puts them in a pending changelist. You can create the new files before or after you run open for add. (However, you don't have to worry about filetype selection if you create them before runnning open for add.)

The files you have opened for add aren't sent to the depot until you submit your pending changelist. The files must be present in your workspace to be submitted. If you decide you don't want to submit the files after all, you can use the revert command to remove them from your pending changelist.

Run->Open for add... takes you to a page where you list the files you want to add and select options to control how they will be added. After completing the form on the page, click "Open for Add" to open the files.

Files can only be opened for add if:


Copyright 2000 Perforce Software. All rights reserved.