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.71k stars 106 forks source link

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

Closed zixueio closed 1 year ago

zixueio commented 1 year ago

Environment

TidGi 0.7.6-prerelease2 Electron 17.0.1 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 Pt (C:\Users\Administrator\AppData\Local\TidGi\app-0.7.6-prerelease2\resources\app.asar.unpacked\.webpack\main\file:\D:%5Ca%5CTidGi-Desktop%5CTidGi-Desktop%5Cnode_modules%5Cgit-sync-js%5Cdist%5Csrc%5Csync.js:54:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at StartConfiguringGithubRemoteRepository (C:\Users\Administrator\AppData\Local\TidGi\app-0.7.6-prerelease2\resources\app.asar.unpacked\.webpack\main\file:\D:%5Ca%5CTidGi-Desktop%5CTidGi-Desktop%5Cnode_modules%5Cgit-sync-js%5Cdist%5Csrc%5CcommitAndSync.js:82:13)
    at Mt (C:\Users\Administrator\AppData\Local\TidGi\app-0.7.6-prerelease2\resources\app.asar.unpacked\.webpack\main\file:\D:%5Ca%5CTidGi-Desktop%5CTidGi-Desktop%5Cnode_modules%5Cgit-sync-js%5Cdist%5Csrc%5CinitGit.js:37:25)

linonetwo commented 1 year ago

没填token吧,可以先建本地的,之后再同步上去。

linonetwo commented 1 year ago

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