Git: each repository's branch, changes and history

Pick each repository's branch, see what waits to be committed from Code, the wiki and Assets, commit it, and read the history — in one place.


A project's code, wiki and files can sit in more than one repository. Git is where you manage each of them: which branch you are on, what you changed and haven't committed yet, the commit, the history, and the project's branches. Code, the wiki and Assets read and edit files; Git is where those edits become commits.

Git sits after Assets in the project's navigation, in the browser, the desktop app, the Mac, an iPad and both phones. On a phone it starts in More; someone with Manage project can move it into the bar in Settings → Navigation.

What it lists

Every repository of the project, in the project's order (see Where files are kept). Each row shows the repository's name, the branch you are on, and how many changes wait there.

With one repository there is no list: Git opens on that repository's page. With several, All changes heads the list. Folders kept in a bucket aren't listed; their history stays in the view that shows them.

A project whose only repository Peractor keeps for it has no Git. Its views save and keep their history as they always have.

Each repository's branch

Each repository has its own branch, kept for you on each device. Switching it moves every folder of that repository in Code, the wiki and Assets, and nothing kept anywhere else. If you have an edit open that isn't saved, Git asks before it switches.

Branches lists the repository's default branch first, then the rest by their newest commit. Create branch… makes one from the branch you are on, and Compare sets two branches against each other the way a pull request does.

The views say where they are reading. Over Code's tree, the wiki's and Assets' folders, a line names each repository they read and its branch, like api · main, and how many changes wait there; either opens Git on that repository.

Changes, and committing

Saving a file in Code, a page in the wiki, or an upload or a description in Assets keeps it on your device. Changes lists it, under the repository it is in, whichever view made it. A file you edited in Code and as a wiki page is one change. Each repository's changes have a message ready and one Commit: all of them, as one commit, straight to the branch. A row's Discard throws its change away. Opening a change sets it against what it was made from: lines side by side, or for a picture, the picture before and after.

With changes in several repositories, Commit all makes one commit in each, with one message, in the project's order. A commit can't span repositories, so if one refuses, Git stops there and says which repositories took it, which refused and why, and which it didn't try.

A branch that only takes changes through a pull request (a protected branch) refuses the commit. Git says so and, if you hold Create branches, offers Commit to a new branch with your changes intact. Someone else's commit on the same branch is merged with yours, and the same lines changed by both of you are shown to you to choose, as Code describes.

With Commit as you finish on (Commit automatically in the Mac, iPhone, iPad and Android apps), a save commits at once and Changes stays empty. Memory and skills are always saved that way, from their pages, and their commits show in History like any other.

History

History lists the branch's commits, newest first, with the branch graph. A commit opens to the files it changed and their diffs; on the Mac and an iPad a commit or a comparison opens as a tab. A file's History, in its menu in Code, the wiki or Assets, opens Git's History showing only that file.

Reading Git takes View files, committing takes Edit files, and Create branch… takes Create branches, as in Code.

Git is your workbench, not a run's. A run checks out its own branches and opens its own pull requests, one per repository. Merging, rebasing and pulling branches aren't part of Git.