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 #259

Closed linnvshidesuxiansheng closed 1 year ago

linnvshidesuxiansheng commented 2 years ago

Environment

TidGi 0.7.7 Electron 18.2.0 win32 10.0.22000 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":"E:\\mywiki\\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/linnvshidesuxiansheng/wiki'
 GitPullPushError: E-3 failed to config git to successfully pull from or push to remote with configuration {"dir":"E:\\mywiki\\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/linnvshidesuxiansheng/wiki'

    at wt (C:\Users\sl\AppData\Local\TidGi\app-0.7.7\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\sl\AppData\Local\TidGi\app-0.7.7\resources\app.asar.unpacked\.webpack\main\file:\D:%5Ca%5CTidGi-Desktop%5CTidGi-Desktop%5Cnode_modules%5Cgit-sync-js%5Cdist%5Csrc%5CcommitAndSync.js:85:13)
    at Pt (C:\Users\sl\AppData\Local\TidGi\app-0.7.7\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

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