tiddly-gittly / TidGi-Desktop

TidGi is an privacy-in-mind, automated, auto-git-backup, freely-deployed knowledge management Desktop note app, based on Tiddlywiki, with REST API for web-clipping and Anki connect. 「 太记 」是一个基于「 太微 TiddlyWiki 」的知识管理桌面应用,能保护隐私内容、高级自动化、自动Git云备份、部署为博客,且可通过RESTAPI与Anki等应用连接。(迭代开发中欢迎试用,开发进度见下方链接)(Under active development, see website below for details)
https://tidgi.fun
Mozilla Public License 2.0
1.74k stars 111 forks source link

bug: E-1 新笔记仓库所用的模板复制失败或者笔记仓库的git初始化失败,这应该是个bug。 initWikiGitTransaction failed, E-3 failed to config git #291

Closed zixueio closed 1 year ago

zixueio commented 2 years ago

Environment

TidGi 0.7.9 Electron 20.2.0 win32 10.0.17763 Locale: zh-CN

Description:

Steps to Reproduce:

Additional Context

Error: E-1 新笔记仓库所用的模板复制失败或者笔记仓库的git初始化失败,这应该是个bug。 initWikiGitTransaction failed, E-3 failed to config git to successfully pull from or push to remote with configuration {"dir":"C:\\Users\\Administrator\\Desktop\\wiki","branch":"HEAD","remote":"origin","userInfo":{"accessToken":""}}.
errorMessages: error: src refspec HEAD does not match any
error: failed to push some refs to 'https://github.com/zixueio/wiki'
 GitPullPushError: E-3 failed to config git to successfully pull from or push to remote with configuration {"dir":"C:\\Users\\Administrator\\Desktop\\wiki","branch":"HEAD","remote":"origin","userInfo":{"accessToken":""}}.
errorMessages: error: src refspec HEAD does not match any
error: failed to push some refs to 'https://github.com/zixueio/wiki'

    at wt (C:\Users\Administrator\AppData\Local\TidGi\app-0.7.9\resources\app.asar.unpacked\.webpack\main\722.index.worker.js:1:418240)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Et (C:\Users\Administrator\AppData\Local\TidGi\app-0.7.9\resources\app.asar.unpacked\.webpack\main\722.index.worker.js:1:420646)
    at Pt (C:\Users\Administrator\AppData\Local\TidGi\app-0.7.9\resources\app.asar.unpacked\.webpack\main\722.index.worker.js:1:422763)

linonetwo commented 2 years ago

没填token?

cloudnavi commented 1 year ago

没填token?

我和他一样的问题,token填了,但是错误信息里面token是空的,很奇怪

linonetwo commented 1 year ago

还有这里面 branch 是 HEAD 也很奇怪,反正你们都不填复现方式,我也不知道是咋回事了,就一直没修

linonetwo commented 1 year ago

用 github desktop 推上去试试吧

cloudnavi commented 1 year ago

还有这里面 branch 是 HEAD 也很奇怪,反正你们都不填复现方式,我也不知道是咋回事了,就一直没修

好吧,我没仔细看的帖子,我的是初始安装之后,第一次新建工作区WIKI的时候出的错。

linonetwo commented 1 year ago

试试最新的预发版 https://github.com/tiddly-gittly/TidGi-Desktop/releases/tag/v0.7.12-prerelease2 , 先创建本地版,之后在配置里再开启同步,创建成功率更高。