Git & Source Control
Codesphere has integrated source control management (SCM) with out-of-the-box support for the most common Git providers, including GitHub, Bitbucket, Azure DevOps, and GitLab. Depending on your Codesphere installation, additional Git providers may be available.
Prerequisite: Connect Your Git Provider
To use Git features, you must first connect your Git provider. Navigate to Git Permissions by clicking your avatar in the top-right corner and selecting "Git Permissions".

Once configured, your Git providers will be fully integrated across all your Codesphere workspaces.
Git in the File Tree
Codesphere automatically detects Git repositories when you open a folder. Any changes you make are reflected in the file tree with standard annotations: A (Added), M (Modified), D (Deleted).
Since deleted files are removed from the directory structure, they will disappear from the file tree but remain visible in the Git Panel.
The Git Panel
Access the Git panel by clicking the Git icon in the left sidebar. This panel lets you perform common Git operations without leaving the UI.

The panel displays your repository status in two sections: CHANGES and STAGED CHANGES.
- View Changed File: Click a file to see its latest version
- Stage/Unstage: Use the
+and-buttons to stage or unstage files - Discard: Revert changes to return a file to its last committed state
The panel also provides controls to Fetch, Pull, and Push, as well as a text field to Commit changes directly.


Git in the Terminal
Codesphere comes with Git preloaded in the terminal, allowing you to run any Git command you're familiar with from your local CLI.
The Git user is always bound to the specific user executing the command. Even in pair programming sessions with a shared terminal, the person who types the command will be asked to confirm their identity before any authenticated action is performed.
Personal access tokens are injected in-flight and never stored in the shared workspace environment.
