BuildGit access

Git access

Clone, push and link an existing project from your own machine over HTTPS or SSH.

Guide1 min read

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

Clone a repository

The clone address is shown in the repository. Replace <owner> and <repo> below with yours.

git clone https://codepinion.co.ke/<owner>/<repo>.git

Push your work

Publish the branch you are on:

Shell
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

  1. Add the repository as a remote, from your project's folder:

    git remote add origin https://codepinion.co.ke/<owner>/<repo>.git
    
  2. Push its history and start tracking the branch:

    Shell
    git 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:

~/.ssh/configConfig
Host codepinion.co.ke
    HostName codepinion.co.ke
    User git
    Port 2223