[Mobile] Automatic sync with GitHub on iOS (for free) via a-shell

Hi,

Unfortunately, I don’t remember which link I should give you to go on. (I may have garnered extra info from here, though.)

I can safely recommend you just go ahead and install the Obsidian Git plugin and in the upper right hand corner follow the messages the plugin gives you.
At some point it will ask you for the GitHub user name and the password (I use the token string instead).
(If the dialog disappears in the meantime, you just go into the plugin settings and put in your details; once you enter your password, it will remember it so don’t worry about the empty record there.)

If you have authentication issues (which probably you will), you go into your repo folder, then in the .git folder find the config file. I recommend not using Linux commands but using the GUI of Taio, as I mentioned.
In there, you need to change

url = [email protected]:<username>/<repo-name>.git

to

url = https://github.com/<username>/<repo-name>.git

That is you need to change git@ to https:// and the colon to a slash in the URL. Username and repo-name are self-explanatory.

Because now you have two kinds of auth methods (passwords) (one created for SSH from A-Shell and one given for Obsidian Git), you need to delete the last two lines from your config file (because Obsidian Git doesn’t use the SSH protocol). These two:

identityFile = id_ecdsa
password = “somepassword”

  • I recommend copying these lines somewhere for future reference (I use AnyBuffer).

After that, Obsidian Git should work properly on the iPad, provided it is not a huge repo/vault (otherwise you’ll likely run out of memory).
Should you want to go back to A-Shell now to pull or push, LibGit2 will conduct its business through the https protocol and thus ask for your password/token (which you either put in as you go or have it cached in but I did not manage to do that).
If your repo is relatively small, you wouldn’t need to go back to A-Shell to fiddle with pull/add/commit/push or any passwords. I am not so lucky.

Hope this helps,

Cheers

2 Likes