Skip to content

Set up a GitHub repository

Termivoa connects a computer to GitHub from your phone, shows your repositories, and clones the one you pick onto that computer, ready for a new session.

Need Detail
git 2.31 or later On that computer. Nothing else: no gh, no git login.
macOS or Linux Windows shows no GitHub row.
A GitHub account on github.com GitHub Enterprise is not supported.
Termivoa v0.1.0-beta.4 or later On that computer.

Each computer connects on its own. Do these steps one time for each computer.

  1. Open Settings and tap the computer’s card, such as mac. Its page has a GitHub part with the row GitHub on mac. Tap Connect. (A card that is not connected yet shows the chip Connect GitHub.)
  2. The sheet shows an 8-character code. Tap Copy code and open GitHub. This copies the code and opens https://github.com/login/device.
  3. On GitHub, paste the code and authorize Termivoa.
  4. One time for each GitHub account: the sheet says Choose repositories. Tap Choose on GitHub and pick All repositories or only some. GitHub can then open a Termivoa docs page that says “Done. Go back to Termivoa.” Go back to the app; it continues by itself.
  5. The row says Connected and shows your GitHub login.

The code works for 15 minutes. The sheet shows the time that is left.

The login is a GitHub App named Termivoa.

Permission Why
Contents: Read and write Clone, pull and push
Metadata: Read-only The list of repositories

It reaches only the repositories that you chose on GitHub. It cannot change workflow files in .github/workflows.

  1. In Settings, tap the computer’s card, then Set up a repository in its GitHub part. Or, in herdr’s New workspace sheet, tap From GitHub next to Add a folder.
  2. Search the list, then tap Set up on a repository.
  3. The sheet shows the clone with a percent and Stop. You can lock the phone; the computer continues.
  4. When it says Ready on mac, tap New session to open a session in the repository. When herdr runs on that computer, New workspace in herdr opens it in herdr.
Detail Value
Where it goes ~/<name> in your home folder on that computer, for example ~/notes
Branch The repository’s default branch
Project Termivoa adds the folder as a project, so it shows in New session
Large repository (1 GB or more) The size shows in amber, and Termivoa asks first: “notes is 1.4 GB. Set it up on mac?”
  • It never deletes or overwrites a folder. When a folder of that name is already there, nothing changes.
  • It runs nothing from the repository: no hooks, no submodules, and no Git LFS download.
  • It does not offer a repository whose name starts with . or -.

What do “on mac” and “name taken” mean?

Section titled “What do “on mac” and “name taken” mean?”
Tag on a row Meaning What a tap does
Set up No folder ~/<name> is on that computer Clones the repository
on mac This repository is already on that computer, in ~/<name> or in a saved project Makes it a project if it is not one yet, then shows Already on mac. with New session. Nothing is cloned
name taken Another folder named ~/<name> is on that computer: another repository, a plain folder, a file or a link Nothing. The row says “Another folder named notes is on mac.”

Two repositories with the same name from two owners cannot both be set up on one computer. The second one says name taken.

Termivoa shows the elapsed time since GitHub reports the repository’s last push. Old repositories use compact weeks, months and years, so a three-year-old push reads 3 yr ago.

Label Meaning
just now Under one minute; also a future timestamp if clocks differ.
min ago Whole minutes, until one hour, such as 5 min ago.
h ago Whole hours, until 24 hours, such as 2 h ago.
yesterday Between 24 and 48 hours ago.
d ago Whole days, until seven days.
wk ago Whole seven-day weeks, until 30 days.
mo ago Whole 30-day months, until 365 days.
yr ago Whole 365-day years.

Months and years are approximate elapsed units. The time is calculated when Termivoa reads the repository list; searching the list does not refresh it. A repository with no usable push date has no age label. It stays in the list with its name, other details and the same Set up or on mac action.

A paired phone can A paired phone cannot
Connect and disconnect a computer Read the GitHub login (the token)
See the names of your chosen repositories, also private ones Choose the folder that a clone goes to
Clone a chosen repository into ~/<name> and stop a clone Delete or overwrite a folder
Open a session in it Clone from a site other than github.com

The login stays on the computer. The phone gets only the code, the account name and the list. See Security.

How do pull and push work in a cloned folder?

Section titled “How do pull and push work in a cloned folder?”

In a folder that Termivoa cloned, git uses Termivoa’s login for that one repository. So git pull and git push work in a session, and Commit and Push in Changes work, also on a computer that has no git login of its own. Termivoa does not write the login to the macOS Keychain or to ~/.git-credentials.

A folder that was already there (on mac) keeps your own git login.

When the repository and your git settings have no commit name, Termivoa sets the repository’s own name to your GitHub login and the email to GitHub’s no-reply address. Your global git settings do not change.

  1. In Settings, tap the computer’s card, then Disconnect in its GitHub part.
  2. The app asks: “Disconnect GitHub on mac?”. Tap Disconnect.

Termivoa asks GitHub to revoke the login, then removes it from the computer. When GitHub did not accept revocation, the row shows Also remove Termivoa on GitHub. Tap it and remove Termivoa under Authorized GitHub Apps.

On the computer you can also run pterm github disconnect. See the CLI reference.

Removing the saved login preserves another file linked to the same stored contents. Local removal does not securely erase copies or backups.

What you need to remove What to do
This computer’s saved login Use Disconnect on that computer’s row.
A copied login, or a login on a computer you lost Revoke Termivoa in GitHub’s Authorized GitHub Apps; deleting local data does not itself end copied access.

After Disconnect, git pull and git push in a folder that Termivoa cloned fail with “Termivoa is not connected to GitHub on this computer. In Termivoa, open Settings, tap this computer, then Connect.” Connect again to use them: in Settings, tap the computer’s card, then Connect.

Limit Value
Connect One at a time on each computer. The code works for 15 minutes
Set up One at a time on each computer. At most 30 minutes
Free space 3 times the repository’s size, plus 1 GB
Repository list At most 1000 repositories. A new read comes at most every 60 seconds
Projects 200 on each computer
Login GitHub’s access token works for 8 hours, and the computer gets a new one by itself. Without use for 6 months, you connect again
Requests from each phone, each minute Read 60, list 10, connect 3, set up 3, cancel, disconnect or stop 10

Not in this release: GitHub Enterprise, Windows, a branch choice, another folder than ~/<name>, creating a repository, pull requests, and changes to workflow files.

Why does a saved login become unavailable?

Section titled “Why does a saved login become unavailable?”

Termivoa refuses a saved login file that is linked to another file or has an unsafe owner or type. It repairs permissions only on a valid owned file. Do not make links to saved login files.

Situation What to do
You intentionally linked a saved login file Stop Termivoa and inspect the local file; remove the link only after checking what it points to
You did not create the link or change ownership Investigate the computer before connecting GitHub again
A normal file only needs tighter permissions Termivoa repairs its permissions without replacing the file

See How are private saved files checked? and Why is a private file refused?.

No. Termivoa has its own login. A computer with gh also uses Connect. Termivoa does not use or change the gh login.

Each computer keeps its own login, and the login never moves between computers. If you lose one computer, you remove only its login on GitHub, and the other computers keep working.

Yes, in a folder that Termivoa cloned, and in a folder that has your own git login. GitHub refuses a push that changes a file in .github/workflows: the login does not have that permission. Push such a change from a computer with your own git login.