damionx7 / Zettel-Notes-Documentation

Documentation for Zettel Notes : Markdown Note Taking application for android devices
https://znotes.thedoc.eu.org/
GNU General Public License v3.0
55 stars 5 forks source link

Improve git documentation #33

Closed josineto closed 1 year ago

josineto commented 1 year ago

Hi, the documentation for using Git needs an improving. I have a problem and I don't even imagine how to solve it, because the documentation gives me no clues.

I've tried to use Zettel Notes with an already existing GitLab private repository, with no success. There are three messages:

I've used a personal access token, with only "api" permission, together with my username, the repository address and branch ("master").

damionx7 commented 1 year ago

Hi! Are you on latest version 2.1.4 (beta). And did you enter branch in checkout branch option ?

josineto commented 1 year ago

The initial connection worked when I put HEAD as branch (I've tried before to put master without success).

But after first synchronization, my changes are never sent to origin. My remote repository keeps unchanged. The app gets new changes on repository, but never sends its own changes.

damionx7 commented 1 year ago

Can you see if commits are made in List Commits screen in Zettel Notes ?

josineto commented 1 year ago

Hmm there's no List Commits screen, so I guess you're talking about VCS (Git) screen in left sidebar, below Repositories, right?

Yes, commits are made, but only locally, in master (my branch). If I change from master to HEAD using top right button, there are no commits for my phone changes. If I change to origin/master, there are no commits too.

An important thing: as soon as the app has checked out all the files the first time, there was an error saying "HEAD is detached", so I changed the branch of the repository to master. With that, subsequent pulls worked, but no push. Then I tried to put HEAD as branch again, same error as before. Then I tried to put origin/master as repository branch. This made the app create another branch in my remote repository, called literally origin/master, that I had to erase.

damionx7 commented 1 year ago

This was a known issue in previous versions. Please use latest version of app 2.1.4. It is available in play store and f-droid. And try to setup git synchronization from scratch.