Perforce P4V Adding a new file to the depot

perforce

I'm new to Perforce but I was able to successfully create a depot with a whole directory tree. Now I'm trying to add a file to one of the folders within that tree and I'm having trouble finding how to do that. I can see the file in the Workspace tab when I navigate through my computer but when I right-click the file there's no option to add it to a Pending Changelist. Appreciate any suggestions. Thanks.

Tony

Edit: I feel like I'm making hash of this thing. So I created a new workspace and located the folder containing the file I wanted to add. Then I right-clicked the file and selected "Mark for Add". Then I went to submit and got this error:

//depot/main/SSRS/1 SQL Code/Voucher Query.docx – warning: cannot submit from non-stream client
No files to submit.
Submit failed — fix problems above then use 'p4 submit -c 5'.

Best Answer

The previous answer shows how to add a file from the command line, but you were asking how to do it with P4V.

If you right click the file in your Workspace view you should see the option "Mark for Add". You can also use the toolbar button with a small red + sign, 4th from the left.

Related Topic