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#

The Source Control menu is always in the menu bar, as in Xcode. Choose one of:

  • Create Git Repository to start one in the folder your saved circuit is in.
  • Clone… to copy a project from GitHub: paste its address from the green Code button, choose a folder, and Coppa opens its circuit.
  • Open Example Project to try everything first on a small filter with a real history (see below).

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, publish 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.
  3. Not on GitHub yet? Make an empty repository on github.com (no README), copy its address, and choose Source Control › Publish to GitHub…. Coppa adds it as origin and pushes.

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. The Branch Graph#

Choose Source Control › Branch Graph… (⌃⌘B) to see the whole project the way Xcode draws its memory graph:

  • Every commit is a small card, oldest on the left. Each branch has its own row and colour, and lines join each commit to the one it came from, curving where a branch splits off or merges back.
  • Branch names and tags sit above the cards they point at. The branch you’re on has a tick, and its newest commit a location arrow.
  • Click a card to see its message, who made it and when, and what it changed in the circuit, in words: R1 2.2 kΩ → 3.3 kΩ.
  • From a card or its inspector you can Compare with Current, Open This Version, Restore This Version… (a new change on top, so nothing is lost), New Branch from Here…, Tag This Version… (such as Rev B), and switch to or merge its branch.
  • The toolbar has Commit…, Fetch, Pull, Push and Publish… or Open on the Web. The filter at the bottom picks out commits by message, author, branch or tag.

When two branches both changed a circuit, a merge asks which version to keep, as Altium and Xcode do for files that can’t be merged line by line. Compare them first if you’re not sure.

5. Try it with the example project#

Choose Source Control › Open Example Project. Coppa makes Coppa Source Control Example in your Documents folder: an RC filter tuned over a few commits on main, a lower-cut-off branch that was merged back, an add-output-buffer branch still in progress, and two tags. Open the Branch Graph, click around, switch branches and watch the circuit change. Making it again replaces it.

6. 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 1.0 Beta 1. Last updated 22 November 2026.