orgzly-revived / orgzly-android-revived

Outliner for taking notes and managing to-do lists
https://www.orgzlyrevived.com
GNU General Public License v3.0
614 stars 39 forks source link

is there is any documentation on how to setup git? #263

Open OmarAshkar opened 4 months ago

OmarAshkar commented 4 months ago

I can't find any buttons to sync with git, only local or webdav. How can I config orgzly to sync over git>

amberin commented 4 months ago

The feature is still in beta, so you need to enable it by navigating to Settings -> App -> Developer Settings -> Git repository type.

sdenaro commented 4 months ago

I have 1.8.22-beta.4 and there is no option to enable Git repo types.

amberin commented 4 months ago

@sdenaro In case you run the Play store version, the feature is temporarily removed. See #256. It will be re-added soon(tm).

sdenaro commented 4 months ago

Looks like it will use private storage, which is preferable for my use case.

sudhirkhanger commented 2 months ago

How does one setup ssh keys? Where do I put it?

amberin commented 2 months ago

How does one setup ssh keys? Where do I put it?

@sudhirkhanger That's a bit hard to say, as it depends on what your SSH server setup looks like. But in the most basic solution, you have a user account with a home directory on the SSH server host, and you would then append the public key to the file ~/.ssh/authorized_keys on that host.

sudhirkhanger commented 2 months ago

@amberin I am trying to setup/access the git repository on the Android device via Orgzly revived. It asks for ssh key but I am not sure where it is placed.

amberin commented 2 months ago

The Git repository type is not intended for use with a local Git repository on the Android device. The intended use case is that you have a server somewhere hosting your Git repository, and Orgzly connects to this server to fetch and push updates.

sudhirkhanger commented 2 months ago

It seems ask for git repository url. And how would it know what sort of authentication is asked by the server.

amberin commented 2 months ago

Orgzly (Revived) supports either HTTPS with username/password, or SSH with a private/public key pair. These are your options, no matter what the server supports.

sudhirkhanger commented 2 months ago

And where are you supposed to place those ssh keys on the device? The older Orgzly has a separate entry for ssh which seems to be missing in fdroid version.

amberin commented 2 months ago

Right. In Orgzly Revived, you generate a key pair in the app, and it is stored securely on your device. See Settings -> Synchronization -> Generate SSH key.

sudhirkhanger commented 2 months ago

Thanks. I am finally able to set it up among a bit of confusion from the original and Fdroid and Play store version of Orgzly.

Now I need to figure out a similar setup on the desktop especially around automatically pulling up from the git.