Skip to content

robandpdx/my-perforce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

my-perforce

Notes on setting up a perforce (p4) server.

Downloading p4 clients

Deploy p4 server to AWS

Follow the instructions in this video.
This is the link to the cloudformation template:

https://perforce-cf-templates.s3.amazonaws.com/releases/enhanced-studio-pack-latest.yaml

Connect the client

Once the cloudformation stack deploy has completed, get the P4CommitPublicIP from the output of the cloudformation stack. You'll need this to connect to the server.

Set the value of P4PORT environment variable to the following:

export P4PORT="ssl:<P4CommitPublicIP>:1666"

Use this value also to connect using P4V.

Default user is perforce and the password is the value of HelixCodeInstanceID from the stack outputs.

Notes

This video show perforce usage in game dev.

Migrating P4 depot to git

Initialize git repo

mkdir volcano
cd volcano
git init

Setup depot branch mappings

git config git-p4.branchList "main:development"
git config  --add git-p4.branchList "main:release_1.0.0"

Clone the p4 depot to a new git repo

git p4 clone --detect-branches //volcano@all .

Create a local branch from the branch ref

git checkout -b main refs/remotes/p4/volcano/main
git checkout -b development refs/remotes/p4/volcano/development
git checkout -b release_1.0.0 refs/remotes/p4/volcano/release_1.0.0

Push the repo to GitHub

git remote add origin https://github.com/robandpdx/p4-migrate-test6.git
git push -u origin main
git push --all origin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published