Put a circuit on GitHub

Keep circuits in git, commit from Coppa, push to GitHub, and read changes as parts and values.

A .coppa file is plain text that git handles well. Coppa writes it the same way every time, one setting per line, so changing a value is a one-line change.

1. Make a repository#

  1. Create a repository on GitHub, and clone it to your Mac with GitHub Desktop or git clone in Terminal.
  2. Save your circuit inside the cloned folder with ⌘S.

A Source Control menu appears once the circuit is in a repository. Coppa uses the git in Apple’s Command Line Tools, with your own settings and saved sign-ins, and never asks for or stores a password. If git isn’t installed, the menu offers Install Command Line Tools….

2. Set up readable diffs#

  1. Choose Source Control › Set Up Git for Coppa Files… and click Set Up.
  2. Commit the .gitattributes file it adds, so everyone who clones gets it.

git diff and git apps now show circuits as parts and nets, with lines like R2: Resistor, 220 kΩ at (22, 6), and git won’t mix two versions of a circuit line by line. If you move Coppa, choose Set Up Git again.

3. Commit and push#

  1. Choose Source Control › Commit… (⌃⌥⌘C). Coppa suggests a message from what changed, such as R2 100 kΩ → 220 kΩ.
  2. Turn on Push to send it to GitHub straight away, or choose Source Control › Push later.

Fetch Changes, Pull (⌃⌥⌘X) and Push only talk to GitHub when you choose them. If a push is refused, sign in once with git in Terminal or GitHub Desktop so the keychain keeps your sign-in.

4. Branches, history and comparing#

  • Switch Branch and New Branch… work on branches; switching shows the circuit as it is on that branch.
  • Show History… lists every commit that changed the circuit. Double-click one to compare it with now, or open it read-only.
  • Source Control › Compare With › Last Commit (⌃⌥⌘D), a branch, or any commit shows the two side by side, or overlaid. Added parts are outlined in green, removed in red, changed in orange, and moved parts dashed. Select a change in the list to centre it.

Applies to Coppa 0.1 Preview 14. Last updated 22 November 2026.