Skip to content

Git

g1t speaks git’s smart HTTP protocol. Any git client works.

https://g1t.sh/<workspace>/<repo>.git

Public repositories can be cloned without signing in:

Terminal window
git clone https://g1t.sh/syntaqx/g1t.git

Pushing, and reading private repositories, needs credentials. Use your username, and as the password either your account password or an access token. Tokens are recommended: they can be revoked individually and they also work for the API.

To avoid typing it each time, let git store it:

Terminal window
git config --global credential.helper store

Pushing to a repository that does not exist, in a workspace you belong to, creates it as a public repository.

Terminal window
git push https://g1t.sh/<workspace>/new-repo.git main

A private repository is visible only to members of its workspace. To everyone else it looks exactly like a repository that does not exist, both on the site and to git.

Push any branch to a repository you can write to, and open a pull request from it on the repository’s Pull requests tab.

Terminal window
git switch -c my-change
git push origin my-change

A pull request that was not opened from a branch has its own remote:

https://g1t.sh/pulls/<pull request id>.git

Only whoever opened the pull request can push to it. Pushes to a fork update the pull request’s head commit on its page.

Repositories are stored in Cloudflare Artifacts, which limits a repository to 1 GB and a single file to 32 MB. A single push is limited to 100 MB.

Git over SSH is not available yet. Use HTTPS.