【问题标题】:Syncing .emacs.d folder using personal git server使用个人 git 服务器同步 .emacs.d 文件夹
【发布时间】:2017-06-03 21:25:29
【问题描述】:

要求:

  1. 在 OpenBSD 6.1 服务器上安装 gitemacs(完成)
  2. 将整个 .emacs.d 文件夹置于 git 版本控制下
  3. 在服务器上克隆“工作”存储库(以便文件对服务器本地 emacs 实例可见/可用,而不仅仅是 VC 文件)
  4. .emacs.d 克隆到所有设备

目前的行动:

  • 在服务器上:
  • pkg_add git
  • pkg_add emacs
  • mkdir ~/.emacs.d
  • cd ~/.emacs.d
  • git --bare init
  • 在笔记本电脑上(使用有效的 .emacs.d 配置)
  • mv ~/.emacs.d .emacs.dbk
  • rm -rf .emacs.d
  • git clone test@000.000.000.000:~/.emacs.d
  • 复制了从.emacs.dbk.emacs.d的所有内容
  • git add .
  • git commit
  • git push origin master
  • 成功
  • 返回服务器
  • ls -a ~/.emacs.d HEAD config hooks objects refs branches description info packed-refs 我很确定这很好。

问题:

  1. 我不确定如何获得我的存储库的“工作”视图。我知道上面是“版本控制”视图(服务器)。
  2. 我尝试在我的其他设备上@9​​87654340@ 得到SHA 1 errors

我是否错过了服务器上的文件夹权限步骤? 其他人看到错误吗?

谢谢

【问题讨论】:

  • 你得到了什么确切的错误信息?你的 git 版本是多少?

标签: git emacs openbsd


【解决方案1】:
  1. 在服务器的裸仓库中:git ls-tree HEAD

【讨论】:

  • git ls-tree HEAD 当前产生: * 100644 blob 22755d4e517f1698c57953a7630fde87bf30fb0c bbdb 100644 blob e0bd203a507bf3809875d3af2368e2cc3300f8fb bookmarks 100644 blob 0ebae31786564c0d36b80a59f5636019e3e20e6f config.el 100644 blob b9328d65e32587dbd990a539872c32e864287170 config.org 100644 blob cf54fcb1b889ae27e8378c907b98629917bfcdd7 ido.last 100644 blob 37b41e0bbe6488ff60dc0976427e2adc2e3362b9 org-clock-save.el 因为我将已知良好的 .emacs.d 文件夹推送到它。
  • config.org = init.el 在这种情况下。我使用“识字 emacs 配置”per HRS's recommendations
猜你喜欢
  • 2020-02-20
  • 1970-01-01
  • 2015-07-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多