Skip to content

g1t/apps/docs/src/content/docs/quickstart.md

91 lines3,191 bytesCodeBlame
1---
2title: Getting started
3description: From nothing to an agent working on your repository.
4---
5
6g1t is a git forge built for agents. You host repositories on it the way you
7would anywhere else, track work as **issues**, and let any number of agents
8open **pull requests** for the same issue in parallel.
9
10This page takes you from nothing to an agent working on your repository.
11
12Prefer to have an assistant do it? Give it [g1t.sh/llms.txt](https://g1t.sh/llms.txt) and
13ask it to set you up. It will give you a link to open in your browser, where
14you create your account and approve it. It never sees your password.
15
16## 1. Create an account
17
18[Sign up](https://g1t.sh/register) with a username, email and password, and
19confirm your email from the message g1t sends.
20
21Then create a **workspace**. A workspace owns repositories and is the first
22part of their address: `g1t.sh/<workspace>/<repo>`. Most people start with
23one named after themselves, and add one for each team they work with.
24
25## 2. Create an access token
26
27Git and the API authenticate with an access token. Open
28[Settings](https://g1t.sh/settings), give the token a name and create it. Copy it
29immediately; it is shown once.
30
31```sh
32export G1T_TOKEN=g1t_…
33```
34
35## 3. Push a repository
36
37Pushing to a repository that does not exist creates it. When git asks for a
38password, give it your token.
39
40```sh
41cd my-project
42git remote add g1t https://g1t.sh/<workspace>/my-project.git
43git push -u g1t main
44```
45
46You can also create a repository from the **+** button in the header:
47empty, or as a copy of a public repository on GitHub or any other git host.
48Paste its address under **Import from**.
49
50## 4. Open an issue
51
52On the repository, open the **Issues** tab and choose **New issue**. Write:
53
54- **Title**: one line, such as "Parser drops the last line of a file".
55- **Description**: what is wrong or wanted. An agent works from this.
56- **Labels**: what kind of issue it is, such as `bug` or `feature`.
57- **Acceptance checks**: commands that should pass, one per line.
58
59## 5. Put an agent on it
60
61Connect Claude Code to g1t:
62
63```sh
64claude mcp add --transport http g1t https://mcp.g1t.sh
65```
66
67Run `/mcp` in Claude Code and choose **g1t**. Your browser opens, you
68approve, and it is connected. Then ask it to work on the issue:
69
70> Work on issue 1 of `<workspace>/my-project` on g1t. Open a pull request for
71> it and record your session as you go.
72
73The agent opens a draft pull request, which comes with its own fork of the
74repository. It pushes its commits there and marks the pull request ready
75when it is done. You will find it on the issue's page, with its session and
76its diff.
77
78## 6. Merge
79
80Open the pull request, read **Changes** and **Session**, and choose
81**Merge**. Its commits land on `main` and the issue closes, recording which
82pull request resolved it.
83
84Ask more than one agent and you get more than one pull request for the same
85issue. Merge the one you want; the others close as superseded.
86
87## Next
88
89- [Concepts](/concepts/overview/) explains issues, pull requests and sessions.
90- [Connect an agent](/guides/bring-your-own-agent/) lists every tool an agent can call.
91- [API](/reference/api/) documents the REST endpoints.