obsidian-git icon indicating copy to clipboard operation
obsidian-git copied to clipboard

[Bug]: Unable to specify Github account for push

Open aknight2015 opened this issue 2 years ago • 8 comments

I'm using the Debian version of Obsidian. I installed the plugin from Obsidian's built in plugin manager. I can't specify anywhere which GitHub account I want to push to.

aknight2015 avatar Apr 02 '22 06:04 aknight2015

To clear some vocabulary. You don't push to a GitHub account, but to a remote git repository, which can be on GitHub. One GitHub account can have many git repositories. There's an edit remotes command. In addition, it should ask you for a remote, when you try to pull/push.

Vinzent03 avatar Apr 02 '22 10:04 Vinzent03

I also didnt get where I can set git account settings (using Windows) in plugin or in my git 3rd party app?

assopri avatar Apr 04 '22 11:04 assopri

The plugin doesn't provide an interface to configure authentication. Please do some research yourself about authentication. Either ssh or https. You probably want to use https and cache the personal access token.

Vinzent03 avatar Apr 04 '22 12:04 Vinzent03

If there's no way to configure your plugin then it's useless.

On Monday, Apr 4, 2022, 8:09 AM, wrote:

The plugin doesn't provide an interface to configure authentication. Please do some research yourself about authentication. Either ssh or https. You probably want to use https and cache the personal access token. -- Reply to this email directly or view it on GitHub: https://github.com/denolehov/obsidian-git/issues/214#issuecomment-1087474804 You are receiving this because you authored the thread. Message ID:

aknight2015 avatar Apr 04 '22 15:04 aknight2015

@aknight2015 Authentication is different from system to system, which I haven't understood completely, and I don't know how to handle securely. Git is not just a sync method, but designed to be used by, e.g. developers. I'm aware that configuring authentication is an issue currently. But saying this plugin is useless is simply wrong.

Vinzent03 avatar Apr 04 '22 20:04 Vinzent03

I'm getting this error: Base path does not exist

In the plugin Options > Advanced > Custom base path (Git repository path) I have put the Git repository name:

billpetro/obsidian-backup

(The full path would be https://github.com/billpetro/obsidian-backup)

What have I missed?

billpetro avatar Jun 14 '22 20:06 billpetro

@billpetro That's not supposed to be set there. It's when the git root is below your vault root. As the title "Advanced" tells, it's rarely used. Please leave that field empty.

Vinzent03 avatar Jun 15 '22 13:06 Vinzent03

There's a "Username on your git server" option on mobile now. Could that be brought over to desktop? Would that solve your problem?

NomarCub avatar Sep 19 '22 16:09 NomarCub

Yeah, you're right. Just frustrating. I shouldn't have taken it out on you. I apologize.

On Monday, Apr 4, 2022, 4:22 PM, wrote:

@aknight2015 Authentication is different from system to system, which I haven't understood completely, and I don't know how to handle securely. Git is not just a sync method, but designed to be used by, e.g. developers. I'm aware that configuring authentication is an issue currently. But saying this plugin is useless is simply wrong. -- Reply to this email directly or view it on GitHub: https://github.com/denolehov/obsidian-git/issues/214#issuecomment-1087978230 You are receiving this because you were mentioned. Message ID:

aknight2015 avatar Oct 11 '22 07:10 aknight2015

It doesn't. It doesn't prompt me for anything.

On Saturday, Apr 2, 2022, 6:21 AM, wrote:

To clear some vocabulary. You don't push to a GitHub account, but to a remote git repository, which can be on GitHub. One GitHub account can have many git repositories. There's an edit remotes command. In addition, it should ask you for a remote, when you try to pull/push. -- Reply to this email directly or view it on GitHub: https://github.com/denolehov/obsidian-git/issues/214#issuecomment-1086609482 You are receiving this because you authored the thread. Message ID:

aknight2015 avatar Oct 11 '22 09:10 aknight2015

@aknight2015 On mobile or desktop? It should only on mobile.

Vinzent03 avatar Oct 11 '22 09:10 Vinzent03