Git access
Clone, push and link an existing project from your own machine over HTTPS or SSH.
You can work entirely in the browser, or clone a repository and use your own Git client. Both talk to the same repository. The commands on this page are for Production (codepinion.co.ke).
Choose how to authenticate
- HTTPS with an access token. Create a token in API tokens (requires sign-in) and paste it when Git asks for a password. Pick the Clone and fetch profile for read-only use, or Clone and push (the default) to publish changes. See Access tokens and SSH keys.
- SSH with a key. Add your public key in SSH keys (requires sign-in). Git over SSH runs on port 2223, not the usual 22.
Clone a repository
The clone address is shown in the repository. Replace <owner> and <repo> below with yours.
Push your work
Publish the branch you are on:
git push origin HEAD
Bring an existing project
If the code already lives on your machine, create an empty repository on CodePinion first (New repository), then point your project at it.
Steps
-
Add the repository as a remote, from your project's folder:
-
Push its history and start tracking the branch:
Shellgit push -u origin main
After that, plain git push and git pull work with no extra flags.
Shorter SSH addresses
Because Git's SSH runs on port 2223, the short git@codepinion.co.ke:<owner>/<repo>.git form only works once your SSH client knows the port. Add this once to ~/.ssh/config on your machine:
Host codepinion.co.ke
HostName codepinion.co.ke
User git
Port 2223