Almost what you need

Mia's qPCR protocol now lives in Gitea, with every change kept (T19-L01 · Keep Your Files in Gitea and Get Any Version Back). Two things are missing. She wants to work on the files on her own computer with OpenCode, not only in the browser. And her colleague Jonas should be able to change the protocol too, without files going back and forth by email.

In this book you connect your computer to Gitea, copy the repository down, change it with OpenCode, send the change up, bring a colleague's change down, and settle the one situation where a person has to decide: both of you changed the same line. You are at Level 2 Power user: from now on your mistakes reach Jonas.

After this you can

  • Connect your computer to Gitea with an SSH key, without a password or key ever going through the chat.
  • Copy a repository to your computer with OpenCode, and keep raw data out of it with a .gitignore file.
  • Commit and push your changes, and pull a colleague's changes.
  • Stop OpenCode from settling a conflict on its own, and decide yourself whose line stays.
  • Give a colleague write access to your repository.

Before you start

Last verified 25 September 2026. Everything here works on any Gitea, including gitea.com, and needs no paid plan. OpenCode Desktop 2.0.16 does the Git work; you type no commands. Details for experts at the end of this book.

The idea in one page

  • There are now two copies. One on Gitea, one on your computer. A commit saves a version on your computer. A sends your commits to Gitea. A brings your colleagues' commits down.