|
|
1 week ago | |
|---|---|---|
| .obsidian | 1 month ago | |
| AI与模型 | 1 month ago | |
| Clippings | 1 month ago | |
| Github | 1 month ago | |
| OpenClaw | 2 weeks ago | |
| Oracle | 1 month ago | |
| QuantumultX | 1 month ago | |
| Templater | 1 month ago | |
| VPS | 1 month ago | |
| attachments | 1 month ago | |
| 个人空间 | 1 month ago | |
| 企业微信 | 2 weeks ago | |
| 子兰工作 | 1 week ago | |
| 安全渗透 | 1 month ago | |
| 家庭实验室 | 1 month ago | |
| 工具与开发 | 1 month ago | |
| 工程项目 | 1 month ago | |
| 技术支持 | 1 month ago | |
| 拍照技巧 | 1 month ago | |
| 智能家居 | 1 month ago | |
| 知识参考 | 1 month ago | |
| 系统配置 | 1 month ago | |
| .gitignore | 1 month ago | |
| 2026-05-13.md | 1 month ago | |
| 2026-06-17.md | 1 month ago | |
| Github私人令牌.md | 1 month ago | |
| Obsidian 备份方案与避坑指南.md | 1 month ago | |
| Obsidian-COUCHDB.md | 1 month ago | |
| README.md | 1 month ago | |
| Rustdesk-key.md | 1 month ago | |
| Windows Server SSH部署指南.md | 1 month ago | |
| chatwoot+n8n+dify.md | 3 weeks ago | |
| iPhone 到 Mac.md | 1 month ago | |
| 以图搜图教程.md | 2 weeks ago | |
| 家庭网络配置手册.md | 1 month ago | |
| 秋大神.md | 1 month ago | |
| 邮件信息.md | 3 weeks ago |
2026-06-16 配置完成
~/Documents/obsidianssh://git@84.235.240.199:2222/zhensolid/obsidian.gitzhensolid / zhensolid@vip.qq.com| 配置项 | 值 | 说明 |
|---|---|---|
| autoSaveInterval | 10 | 每 10 分钟自动 commit |
| autoPushInterval | 10 | 每 10 分钟自动 push |
| autoPullInterval | 10 | 每 10 分钟自动 pull |
| autoBackupAfterFileChange | true | 编辑文件后立即 commit |
| pullBeforePush | true | 推送前先拉取 |
| disablePush | false | |
| differentIntervalCommitAndPush | true | commit 和 push 独立间隔 |
# 用户信息(在仓库目录下)
git config user.name "zhensolid"
git config user.email "zhensolid@vip.qq.com"
# 推送策略
git config push.default current
# 分支
git branch -M master
git branch --set-upstream-to=origin/master master
.DS_Store
.obsidian/workspace.json
.obsidian/workspace-mobile.json
.trash/
LiveSync 插件会在 git 配置里留下一个叫 obsidian 的 remote,指向 SSH Gogs。git 插件会混淆,报错:
fatal: The upstream branch of your current branch does not match
解决:git remote remove obsidian
Gogs 默认分支是 master,本地可能是 main。报错:
error: src refspec main does not match any
解决:git branch -M master
远程仓库已有内容时,直接 push 会报:
[rejected] (non-fast-forward)
hint: Updates were rejected because the tip of your current branch is behind
解决:
git pull origin master --allow-unrelated-histories --no-rebase
# 解决冲突
git add .
git commit -m "merge"
git push origin master
HTTP 和 SSH 推送都会超时/卡住。这是 Gogs 服务端问题,插件配置没问题。需要在 princess 上检查:
插件在 Obsidian UI 里配置后,data.json 不会立刻写盘。需要:
cd ~/Documents/obsidian
# 如果 .git 被误删
git init
git remote add origin ssh://git@84.235.240.199:2222/zhensolid/obsidian.git
git config user.name "zhensolid"
git config user.email "zhensolid@vip.qq.com"
git config push.default current
git branch -M master
git pull origin master --allow-unrelated-histories --no-rebase
git remote -v 只有一个 origingit branch 显示 mastergit log --oneline 有提交记录.obsidian/plugins/obsidian-git/data.json 存在autoBackupAfterFileChange 为 true