Some usefull Perforce commands 
Sync your files : 
sh
p4 syncSync your files to the older version : 
sh
p4 sync @nSync files to the latest revision on the repository : 
sh
p4 sync @n+1Set P4 Ignore : 
sh
p4 set p4ignore=_filename.ext_Open all the files for edit : 
sh
p4 editAccept the changes that you have made : 
sh
p4 resolve -aySubmit the changes : 
WARNING
Be sure to not have this character " ' " into a changelist description
sh
p4 submit