Skip to content

When two people change the same thing

Changes to different files, or to different parts of one file, are combined without anyone noticing. When two people change the same lines, save says so, names the files and whose change it clashed with, and waits. Nothing is lost.

who and save warn while both of you are still working, before it comes to that.

Open each file and find the lines marked <<<<<<<, ======= and >>>>>>>. Your version is between the first two, your teammate’s between the last two. Keep what should stay, delete all three marker lines, and saturn save again. If the ======= line is left behind, save says which line it is on and waits.

saturn save --keep mine
saturn save --keep theirs
  • Only the clashing lines are decided. Everything else either of you changed in the file is kept, so keeping yours never takes a teammate’s other changes back out.
  • It picks only for files you have not touched since the clash began, so anything you already sorted out by hand stays as it is.
  • Add file names to pick for those files only. A file you name is overwritten even if you had begun on it.
saturn undo

If you have already begun sorting the files out, it says which of them that would throw away and asks first. When nobody is there to answer, it prints the command that goes ahead: saturn undo clash --yes, which does nothing once the clash is over.

While a clash is waiting, saturn undo only backs out of the clash. Given a number or an id, it changes nothing and says so: finish or back out first, then take the ship back.

Model files such as .rbxm have no lines to fix: pick a whole version with --keep, or put the file you want in its place and saturn save. The same goes for:

  • a scene or a prefab of the game’s engine,
  • a file one of you deleted,
  • a new file you both added.

To avoid these clashes in the first place, see Holding files.

On Saturn Rings, a clash does not hold a save up, and a scene is combined by what is in it.