Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jtslaravel's avatar

Examples for Custom Git Repo in Forge

I am trying to find an example of what the correct syntax is for adding a Custom Git Repo (in this case AWS CodeCommit) to Forge.

Forge lists the syntax as [email protected]:user/repository.git

In this case the user is the ID generated by AWS IAM when you upload the public key.

So for example I've tried things like [email protected]:AWSKEY/git-codecommit.region.amazonaws.com/v1/repos/reponame

If I log into the server I can successfully run the commands to clone the git repo using the same ID. The same config file exists for the for Forge account as what I'm using when running the commands.

I haven't found any documentation or examples on Forge.

0 likes
5 replies
ShaneEBryan's avatar

After several hours I figured this out.

[email protected]:/v1/repos/reponame

The colon after .com tells git to use the /V1/repos/reponame repo using the AWSKEY user at the git-codecommit.region.amazinaws.com domain.

Hope this helps save someone else a few hours.

4 likes

Please or to participate in this conversation.