Skip to content

Git messages and what to do

Message What to do
Git is not installed Install Git: see Set up Git once. On a Mac, run git --version in Terminal and install the developer tools. Restart korAPI.
The server did not accept your sign-in. Check that you can open the repository in your browser with your account, and that Git on this computer is signed in to that server (step 3).
The repository was not found. Check the URL. A private repository also shows this when your account has no access: ask the owner to add you.
This computer has not connected to that server with SSH before. In Terminal, run ssh -T git@github.com (your server) and answer yes. Or use the repository’s HTTPS URL.
The server could not be reached. Check your internet connection or VPN, then try again.
The repository on the server already has files. Share needs an empty repository. Make a new one without a README, or use Open from Git… for this one.
Someone else sent changes first. Choose Pull, then Commit & Push again. See Every day.
Unsaved changes on this computer are in the way. Your changes touch the same requests as the ones coming in. Save, then choose Commit & Push. If it says Someone else sent changes first, choose Pull: your changes are now kept in Git and come together with theirs.
There is nothing new to send. Everything is sent already. Change and save a request first.
Git needs your name and email for the history. Enter them when korAPI asks.
… is not empty. (Open from Git) Choose a new folder, or an empty one.
This repository has no collection at its top level. The repository is not a korAPI collection (it has no collection.json at the top). Check that you have the right URL.
This collection is a folder inside another Git repository. korAPI only shares a collection that is its own repository. Use Git for the outer repository in a terminal, or move the collection out of it.
A Pull is waiting on conflicts. Settle each conflict, or choose Cancel Pull, then Discard again. See When you both changed the same request.
Nothing has been committed with Git yet. There is no earlier version to go back to. Choose Share with Git… to send the first one.
This file can only be kept whole. It cannot be compared field by field. Choose Keep Mine or Take Theirs.
Some fields still need a version. In Compare Fields, pick Mine or Theirs for each field, then Use These.
… could not be moved to the Trash. (Discard, Delete) If the collection is in iCloud Drive, download the folder first (Finder: Download Now), then try again.
Git stopped: … Try again. If it keeps happening, run the same step with git in a terminal, in the collection’s folder, to see the whole message.

The collection folder is a normal Git repository. You can use any Git tool on it alongside korAPI: the app reads the files again when its window comes back to the front. korAPI works on the branch that is checked out, never creates branches, and never fetches by itself. It sends every saved change in the folder with Commit & Push (git add --all), and its Pull is a merge.