Coffee Help
All topics

Help AI and Git

Keeping a Git library committed

Mac

If your notes folder is already a Git repository, Coffee can commit, pull and push it for you. It never makes a repository, and everything is off until you turn it on.

How to turn it on

  1. Open Settings › Library. The Git section shows when your notes folder is a Git repository.
  2. Choose how often to commit: every 5, 15 or 30 minutes.
  3. Turn on Pull when Coffee opens, and Push after each commit, if you want them.

Good to know

  • Coffee runs your Mac's own Git, with the remote and sign-in it already uses. If a push needs a password, push once from Terminal or your Git app so it remembers you.
  • Nothing is ever forced. If the same note changed in both places, Coffee doesn't merge: it leaves your notes as they were and names the notes for you to settle in your Git app. No note ever holds conflict markers.
  • What a pull brings in shows as changes made outside Coffee, ready for See what changed.
  • The settings are for this notes folder only: another folder that's a Git repository, such as a code project, gets none of them.
  • Coffee's own caches, folds and sidebar layout are never committed, so two Macs never fight over them. Files over 100 MB are left out, and Coffee says which.
  • Coffee runs none of the repository's hooks, and leaves it alone while a merge, rebase, revert or bisect is under way, while conflicts wait to be settled, or when it isn't on a branch.
  • A note you make private later is encrypted from then on, but versions committed before stay readable in the repository's history and on its remote.

Not what you needed? Write to a person.