Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

source-control-providers.md

127 lines4.5 KB

1# Source Control Integrations
2​
3T3 Code connects directly to your Git hosting provider so you can create pull requests, review code, and manage repositories without leaving your editor. Work stays in flow—no more jumping between browser tabs and terminal windows.
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—all in one flow
28- Perfect for turning a weekend prototype into a real project
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 panel
35- T3 Code can suggest titles and descriptions based on your commits
36- Supports GitHub Pull Requests, GitLab Merge Requests, and Bitbucket Pull Requests
37​
38**Stay on top of open reviews**
39​
40- See if your current branch already has an open PR/MR
41- Open the review directly in your browser with one click
42- Check out a teammate's branch to review code locally
43​
44### Know Your Setup at a Glance
45​
46The **Source Control settings** page shows you exactly what's connected:
47​
48- ✅ Which providers are authenticated and ready
49- ⚠️ What's missing and how to fix it
50- 👤 Which account is signed in (when available)
51​
52Run a quick **Rescan** after setting up a new machine or changing credentials.
53​
54## Getting Started
55​
56### For GitHub (Recommended for most users)
57​
581. Install the GitHub CLI on the machine running T3 Code:
59 ```bash
60 brew install gh
61 ```
622. Sign in:
63 ```bash
64 gh auth login
65 ```
663. Open **Settings → Source Control** in T3 Code and verify GitHub shows as authenticated
67​
68That's it—you can now clone, publish, and create pull requests.
69​
70### For GitLab
71​
721. Install the GitLab CLI:
73 ```bash
74 brew install glab
75 ```
762. Authenticate:
77 ```bash
78 glab auth login
79 ```
803. Check **Settings → Source Control** to confirm the connection
81​
82### For Bitbucket
83​
84Bitbucket uses API tokens instead of a CLI tool:
85​
861. Create an API token in your Atlassian account with read/write access to pull requests and repositories
872. Add these environment variables to the environment running T3 Code:
88 ```bash
89 export T3CODE_BITBUCKET_EMAIL="you@example.com"
90 export T3CODE_BITBUCKET_API_TOKEN="your-token"
91 ```
923. Restart T3 Code and verify the connection in **Source Control settings**
93​
94### For Azure DevOps
95​
961. Install Azure CLI:
97 ```bash
98 brew install azure-cli
99 ```
1002. Add the DevOps extension:
101 ```bash
102 az extension add --name azure-devops
103 ```
1043. Sign in:
105 ```bash
106 az login
107 ```
108​
109---
110​
111## Requirements & Troubleshooting
112​
113**Git is required** – T3 Code uses Git for all local operations. Ensure `git` is installed on your server.
114​
115**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.
116​
117**Common issues:**
118​
119- **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
120- **Bitbucket not connecting** – Double-check your environment variables are set in the correct shell profile and the server was restarted
121- **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)
122​
123**Need more help?** Check your provider's CLI documentation:
124​
125- [GitHub CLI](https://cli.github.com/)
126- [GitLab CLI](https://gitlab.com/gitlab-org/cli)
127- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/)