Git
Connect GitHub to a workspace, then stage, commit and push a project to a repository from the editor.
Connect GitHub for the workspace
A workspace connects GitHub once, by installing the ByteRun GitHub app. After the install GitHub sends you back to where you started. Reading the connection is open to any member; connecting and disconnecting are for admins, and the server enforces that.
In a project
Each project then picks a repository from what the connection can reach. The source control panel in the file tree lets you:
- see the files that changed, and what changed in each (for a notebook, which cells changed),
- stage and unstage files, and discard the changes to a file,
- commit the staged files with a message (Commit needs at least one staged file),
- push the project's commits to the repository, and pull the repository's commits into the project.
Use Look for changes now to refresh the list. A push or pull that cannot go through, for example because of a conflict, says so in the panel.
The repository picker reads Use the files from until the project has a link or commits, and Push this project to afterwards. If the list is empty, no repository is shared with ByteRun yet: grant access on GitHub, then try again. You can link a project to a different repository, or stop it pushing to the current one.
Who can do what
Everyone with access to a project can see its status, history and diffs. Only editors can stage, commit, discard, push and pull; viewers do not get those controls.
Disconnecting GitHub stops pushes until you pick a repository again. The project keeps its local history.