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

Closed hhfgy1 closed 2 years ago

hhfgy1 commented 2 years ago

Environment

TidGi 0.7.5 Electron 17.0.1 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":"C:\\Users\\hhf0\\Desktop\\tdwiki","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/hhfgy1/tdwiki'
 GitPullPushError: E-3 failed to config git to successfully pull from or push to remote with configuration {"dir":"C:\\Users\\hhf0\\Desktop\\tdwiki","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/hhfgy1/tdwiki'

    at Pt (C:\Users\hhf0\AppData\Local\TidGi\app-0.7.5\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\hhf0\AppData\Local\TidGi\app-0.7.5\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\hhf0\AppData\Local\TidGi\app-0.7.5\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 2 years ago

Hi, the branch can't be 'HEAD', it should be main or master!