haydenull / logseq-plugin-git

A git plugin for logseq
MIT License
115 stars 24 forks source link

I can't push #28

Open Immortal-Sty opened 1 year ago

Immortal-Sty commented 1 year ago

What happened

I can't push by this plugin.

Git push failed
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

git remote add <name> <url>

and then push using the remote name

git push <name>

But I can push by powershell.

PS C:\Files\Long\Logseq\Note> git push github master
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 399 bytes | 199.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:Immortal-Sty/Logseq-note.git
   20b299f..a83f32c  master -> master

It's strange.

My system

Immortal-Sty commented 1 year ago

have you add remote repo first by command "git remote add"?

Of course.

Lorssi commented 1 year ago

me too

Lorssi commented 1 year ago

What happened

I can't push by this plugin.

Git push failed
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

git remote add <name> <url>

and then push using the remote name

git push <name>

But I can push by powershell.

PS C:\Files\Long\Logseq\Note> git push github master
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 399 bytes | 199.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:Immortal-Sty/Logseq-note.git
   20b299f..a83f32c  master -> master

It's strange.

My system

  • Computer system: Windows 11 22H2;
  • Logseq version: 0.8.17;

Have you solved it now?Can you tell me how it was resolved?

Immortal-Sty commented 1 year ago

@Lorssi

No. Actually, I've given up this plugin.

TwIStOy commented 1 year ago

The push action seems to use just git push. Maybe you should set your remote name as origin and branch is master?

k2s commented 1 year ago

this is addressed in https://github.com/haydenull/logseq-plugin-git/pull/39

always test git commit, git push and git pull from command line if you have problems

AxelRHD commented 10 months ago

I have nearly the sampe problem now.

Since yesterday Ctrl+S worked as expected. But today a commit is created, but the push failes without errors. I can push the new commit manually with the powershell. But that is very unconvenient. How can I track down the error?

Thanks.