Skip to content

Synchronization

Git

If the files lie in a git repository, the application commits every change and synchronizes with the remote repository. Changes of two devices are merged without a conflict to resolve: todo.txt, ice_recur.txt, done.txt and calendar-sideline.txt line by line, where a line that both devices changed differently is kept in both versions, and of two plans the one made last is taken. A note or koppter.yml that two devices changed at the same place stops the synchronization, which then names the file. This holds for the synchronization of the application; a git pull on the command line merges as git does.

Cloning a repository

A repository that is not cloned yet is given by its address, such as git@github.com:user/todo.git, in the field for the file in the settings: the application clones it into its own directory and uses the todo.txt file of the clone. Clone, below the field, does that, closes the settings and shows the tasks of the repository; it writes nothing that stood in the settings. The address of a page of the repository on GitHub, GitLab or Codeberg, such as https://github.com/user/todo or https://codeberg.org/user/todo, is taken as well: pasted into the field, it becomes the address for SSH.

SSH key

The desktop application uses the SSH configuration of the user; the Android application uses the key that the settings show. A click on that key copies it. With the address of a repository of GitHub, GitLab or Codeberg in the field, the button below the key copies the key and opens the page of the repository that adds a deploy key: paste the key there and allow write access, as the text below the button describes.

The repository of a shared list has a key of its own on Android, as a server such as GitHub accepts a deploy key for one repository only (decision 0061): with its address in the field for a shared repository, the button below that field copies its key and opens the page that adds it. Other servers, such as one of GitLab of its own, work with their address for SSH, such as git@git.example.org:user/todo.git; the key is added there by hand.

With an address in the field, Check connection tells whether the server is reached and lets the device read the repository, without cloning it; if not, it shows the reason.

OneDrive and other storage services

A file in OneDrive, or in another storage service, is used through the platform (decision 0011): on Android, choose it with Choose file, or its folder with Choose folder, in the settings; on the desktop, choose it in the synchronized folder.