Alternative way of git syncing on iOS using a-shell for free

Hi,

I just wanted to highlight that there is another way of git syncing on iOS for free than Working Copy. Working Copy is likely worth it but didn’t want to go that path yet :slight_smile:

There’s a terminal program on iOS “a-shell”. a-Shell

This has a minimalistic git functionality based on the libgit library (GitHub - libgit2/libgit2: A cross-platform, linkable library implementation of Git that you can use in your application.) through a lg2 command line.

The recipe that I got working was:

  • create keypair for ssh as described in github

  • go to logseq dir in iCloud using pickFolder command

  • lg2 clone git@github.com:yourrepo.git

  • lg2 config user.email name@here.there

  • lg2 config user.email name@here.there

  • do your logseq edits on iPad

  • lg2 add filename

  • lg2 commit -m “message”

  • lg2 push

A bit of messing about with command line on iPad but seems to work.

Hi,
Does a-shell provides actions for autoamtion/shortcuts? If so, we can make it more seemlessly when working with logseq!

Hi,

Yes a-shell does provide a shortcuts interface for running scripts so I think that should be doable. I Did some initial tests, and it does run git, but one needs to ensure all is scripted and no manual inputs etc.