# External Git access, Access and PATs

Reviewed: 2026-10-12
URL: https://mcp.republic-of-engineers.com/en/guides/git-access/

This guide describes existing Code / Forgejo external Git access, not GitHub authentication. Code Git requires Cloudflare Access plus a Forgejo personal access token (PAT) for native Git authentication; they serve different purposes.

## Prerequisites

Install Git, Python 3 and cloudflared, and confirm repository permission. Sign in to Forgejo, manage a PAT in personal settings and store it through the system credential helper.

## Steps

1. Obtain scripts/roe-git from an authorized repository and follow its member development guide.
2. Clone through the helper: python3 roe-git --origin https://code.republic-of-engineers.com -- clone https://code.republic-of-engineers.com/roe-admin/batteryhub.git
3. Complete browser Access prompts; use your PAT when Git requests a password.
4. Push your feature branch. For 403 / 404, check entrypoint, membership status and repository permissions first.

## Limitations

Never put PATs in remote URLs, command examples or chat. Website OTP is not a PAT. This guide is not proof that your own external Git access has passed acceptance.
