1) Create a Personal Access Token
Visit Developer Tokens and click Create. Copy the token (it shows once).
2) Create a Repository
Go to Create Project. After creation, a bare repository is created for you on the server.
3) Clone the Repo (Terminal)
git clone https://YOUR_DOMAIN/git/YOUR_USERNAME/YOUR_REPO.git cd YOUR_REPO # When prompted: # Username: YOUR_USERNAME # Password: YOUR_TOKEN
4) Commit and Push
echo "# My Project" > README.md git add . git commit -m "first commit" git push -u origin main
Troubleshooting
- Forbidden? Make sure you used a valid token and your repo exists.
- Push denied? You need
repo:writescope (set on token). - Clone URL tip: it’s
https://YOUR_DOMAIN/git/<owner>/<repo>.git.