Skip to content

Git

Because requests are plain files, a workspace fits in a git repository. The sidebar’s Git tab lets you commit and sync without leaving Courier. It uses the git installed on your Mac.

The commit box stays at the top of the tab. Below it are the changed files in the workspace.

  • Click a file to see its diff. Click ↗ to open the request.
  • Tick the files to commit, write a message and commit.

http-client.private.env.json and .env are never committed. They show with a lock and can’t be ticked. Add them to .gitignore.

The workspace can be a subfolder of a repository. Only its files are listed.

The branch bar:

  • switches branches or creates a new one,
  • shows how far you are ahead of and behind the upstream,
  • has Pull (fast-forward only) and Push. The first push sets the upstream.

Click the link button to open Remotes. Add a remote (name and URL), edit a URL, or remove one. Removing a remote only changes your local repository, not the server.

With no remote, the branch bar shows Add remote… instead of Pull and Push.

A folder that isn’t a repository yet offers Initialize repository.

Courier uses your own git setup, so public and private repositories both work.

Git asks your credential helper, which on macOS is the keychain by default. Courier never shows git’s password prompt. When a push or pull is refused, Courier asks you to sign in:

  1. The host and user name are filled in from the remote URL.
  2. Paste an access token. On GitHub, use a personal access token with repository read and write access.
  3. Click Save and push (or Save and pull). Courier hands the token to git credential approve, which stores it in your credential helper, and tries again.

Courier doesn’t write the token to a file, a log or its settings.

Your keys and ~/.ssh/config are used as they are. If a key is refused, the tab suggests adding it to the agent:

Terminal window
ssh-add --apple-use-keychain ~/.ssh/id_ed25519