For more information on Perforce you can visit www.perforce.com.
Refer to perforce documentation if you encounter any problems with the setup process on the version control page.
Only use this if you know how to work offline in Perforce without a Sandbox. Refer to the Perforce documentation for further information.
If Unity for some reason cannot commit your changes to Perforce, e.g. if server is down, license issues etc., your changes will be stored in a separate changeset. If the console doesn’t list any info about the issue you can use the P4V client for Perforce to submit this changeset to see the exact error message.
It’s possible to configure Perforce to revert unchanged files on submit, which is done in P4V by selecting Connection->Edit Current Workspace…, viewing the Advanced tab and setting the value of On submit to Revert unchanged files: