We have updated the Perforce connection, so you do not need to use P4HOST value anymore. Click here to use new connection flow.

Server address (P4PORT):

Depot address (P4HOST):

Getting started with Perforce

1. Download a Perforce Client

You need to download and install a Perforce client before you can start using it on your local computer. Download Link .

2. Set P4HOST before using this depot

3. To get started with a brand new depot

Set up P4CONFIG as described below

  • Run 'p4 info' to make sure you can connect
  • Login with 'p4 login' using your Assembla password
  • Create a client for the main stream by running 'p4 client -S //depot/main -o | p4 client -i'

Start working! You can add new code or import existing code.

  • Launch P4V from your workspace directory by running 'p4v'
  • Make sure that you have set P4V's preferences to connect using environment settings

Command line users: Set environment variable

Windows
p4 set P4CONFIG=C:\path\to\workspace_directory\p4config.txt
cd <C:\path\to\workspace_directory>
echo P4PORT=ssl:perforce-us-east.assembla.com:1667 >> p4config.txt
echo P4HOST=highcg.2 >> p4config.txt
echo P4USER=Anonymous >> p4config.txt
echo P4CHARSET=utf8 >> p4config.txt
echo P4CLIENT=<workspace name> >> p4config.txt
set P4HOST=highcg.2
To launch P4V:
p4v
      
Linux
echo "export P4CONFIG=/path/to/workspace_directory/p4config.txt" >> ~/.bashrc
source ~/.bashrc
cd </path/to/workspace_directory>
echo "P4PORT=ssl:perforce-us-east.assembla.com:1667" >> p4config.txt
echo "P4HOST=highcg.2" >> p4config.txt
echo "P4USER=Anonymous" >> p4config.txt
echo "P4CHARSET=utf8" >> p4config.txt
echo "P4CLIENT=<workspace name>" >> p4config.txt
export P4HOST=highcg.2
To launch P4V:
p4v
      
Mac OS X
echo "export P4CONFIG=/path/to/workspace_directory/p4config.txt" >> ~/.bashrc
source ~/.bashrc
cd </path/to/workspace_directory>
echo "P4PORT=ssl:perforce-us-east.assembla.com:1667" >> p4config.txt
echo "P4HOST=highcg.2" >> p4config.txt
echo "P4USER=Anonymous" >> p4config.txt
echo "P4CHARSET=utf8" >> p4config.txt
echo "P4CLIENT=<workspace name>" >> p4config.txt
export P4HOST=highcg.2
To launch P4V:
open /Applications/p4v.app
      

FAQ

How to update tickets from commit comments

You can use commit comments to link your changesets to Assembla tickets, and add comments to tickets or change their status.

Use "re #4" to link your commit to ticket #4.
Also, "references", "refs" and "see" will add a comment to the target ticket.
Use "<status> #4" to set ticket #4 to the target status. For example, "Test #4" or "Fixed #4".
Use "<status> #tickets" or "re #tickets" to reference all affected tickets in merge request.

About Perforce

Perforce provides powerful tools for guiding development projects. Check out these resources to get started: