Open History to see the last commit
1# Source Control Integrations
2
3T3 Code connects to your Git hosting provider so you can create pull requests, review code, and manage repositories without leaving the app.
4
5## Supported Providers
6
7T3 Code works with the platforms your team already uses:
8
9- **GitHub** – Pull requests, repository creation, and clone integration
10- **GitLab** – Merge requests, repository publishing, and hosted clones
11- **Bitbucket** – Pull request workflows (via API token authentication)
12- **Azure DevOps** – Pull request support for Microsoft-hosted repositories
13
14## What You Can Do
15
16### Start Projects from Anywhere
17
18**Clone repositories directly**
19
20- Open the Command Palette (`Cmd/Ctrl + K`) → **Add Project**
21- Choose **GitHub repository**, **GitLab repository**, **Bitbucket repository**, **Azure DevOps repository**, or paste any **Git URL**
22- Enter the repository path (`owner/repo`, `group/project`, `workspace/repository`, or `project/repository`) or a full Git URL, pick a destination, and start coding
23
24**Publish local projects to the cloud**
25
26- Have a local Git repository without a remote?
27- Use the **Publish Repository** action to create a new hosted repository (GitHub, GitLab, Bitbucket, or Azure DevOps), add it as your origin remote, and push, in one flow
28- If the local repository has no commits yet, publishing creates the remote and wires it up but does not push. Make a commit, then push normally.
29
30### Manage Code Reviews Without Context Switching
31
32**Create pull requests while you work**
33
34- Push a branch and create a pull request from the Git actions controls in the toolbar
35- T3 Code can suggest titles and descriptions based on your commits
36- With **Repository conventions** selected, generated source control text follows the project's
37 `AGENTS.md` along with recent commit subjects. Claude writers also follow `CLAUDE.md`
38- Supports GitHub Pull Requests, GitLab Merge Requests, Bitbucket Pull Requests, and Azure DevOps Pull Requests
39
40**Stay on top of open reviews**
41
42- See if your current branch already has an open PR/MR
43- Open several reviews from the **Pull requests** page as tabs in the right panel
44- While working in a thread, open linked reviews in the same compact right-panel tabs without
45 leaving the conversation
46- Open the review directly in your browser with one click
47- If T3 Code cannot load a GitHub pull request, including when GitHub rate limits requests, use
48 **Open on GitHub** in the error view
49- Command-click (Control-click on Windows and Linux) a pull request number in the sidebar to open it in your browser instead of in T3 Code
50- Check out a teammate's branch to review code locally
51
52**Fix what you wrote, in place**
53
54- Rewrite a pull request's title and description from the review itself, in Markdown, with a
55 preview before you save
56- Rewrite your own comments the same way, wherever they are shown
57- Works on GitHub, GitLab, and Bitbucket. Azure DevOps takes a new title and description; its
58 comments stay read-only here, as they already were
59
60### Know Your Setup at a Glance
61
62The **Source Control settings** page shows you exactly what's connected:
63
64- ✅ Which providers are authenticated and ready
65- ⚠️ What's missing and how to fix it
66- 👤 Which account is signed in (when available)
67
68Run a quick **Rescan** after setting up a new machine or changing credentials.
69
70## Getting Started
71
72### For GitHub (Recommended for most users)
73
741. Install the GitHub CLI (version 2.81.0 or newer) on the machine running T3 Code:
75 ```bash
76 brew install gh
77 ```
782. Sign in:
79 ```bash
80 gh auth login
81 ```
823. Open **Settings → Source Control** in T3 Code and verify GitHub shows as authenticated
83
84You can now clone, publish, and create pull requests.
85
86### For GitLab
87
881. Install the GitLab CLI:
89 ```bash
90 brew install glab
91 ```
922. Authenticate:
93 ```bash
94 glab auth login
95 ```
963. Check **Settings → Source Control** to confirm the connection
97
98### For Bitbucket
99
100Bitbucket uses tokens instead of a CLI tool. Two options, both set as environment variables on the
101machine running T3 Code.
102
103Recommended, a Bitbucket access token:
104
105```bash
106export T3CODE_BITBUCKET_ACCESS_TOKEN="your-access-token"
107```
108
109Or an Atlassian account email plus API token, with read/write access to pull requests and
110repositories, plus read access to your user account (`read:user:bitbucket`, used to verify the
111connection):
112
113```bash
114export T3CODE_BITBUCKET_EMAIL="you@example.com"
115export T3CODE_BITBUCKET_API_TOKEN="your-token"
116```
117
118If both are set, the access token wins. Restart T3 Code and verify the connection in **Source
119Control settings**.
120
121### For Azure DevOps
122
1231. Install Azure CLI:
124 ```bash
125 brew install azure-cli
126 ```
1272. Add the DevOps extension:
128 ```bash
129 az extension add --name azure-devops
130 ```
1313. Sign in:
132 ```bash
133 az login
134 ```
135
136---
137
138## Requirements & Troubleshooting
139
140**Git is required** – T3 Code uses Git for all local operations. Ensure `git` is installed on your server.
141
142**Server-side setup** – Authentication happens on the machine running T3 Code (the server), not your local browser. If you're using a hosted or team instance, your administrator may have already configured providers.
143
144**Common issues:**
145
146- **Provider shows "Not authenticated"** – Run the login command for that provider (e.g., `gh auth login`) in a terminal on the server, then rescan in Settings
147- **GitHub says it could not verify sign-in status** – T3 Code needs GitHub CLI 2.81.0 or newer to check sign-in status. Update `gh` (e.g., `brew upgrade gh`), then rescan
148- **Bitbucket not connecting** – Double-check your environment variables are set in the correct shell profile and the server was restarted
149- **Can't push to a remote** – Verify your Git remote URL matches the provider you've authenticated with (SSH vs HTTPS remotes may need different credentials)
150
151**Need more help?** Check your provider's CLI documentation:
152
153- [GitHub CLI](https://cli.github.com/)
154- [GitLab CLI](https://gitlab.com/gitlab-org/cli)
155- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/)