我并不清楚第3步中具体是如何同步的,我觉得应该也是一个push操作,但奇怪的是,好像并不会出现冲突。
而第2步中的push操作我却很容易碰到冲突,现在就遇到了这样的错误:
! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
可能是因为我对git不太熟,不知道正确的处理方式该是怎样的?
关于SyncOrg:
我查看了SyncOrg的wiki,它的FAQ链接到了MobileOrg的FAQ?!,里面提到
MobileOrg makes use of both checksums.dat and index.org. Without them, synchronization will not work!
我不知道是不是这个原因,根据我目前的理解,我就需要配置org-mobile-files和
org-mobile-directory(参考MobileOrg),进而在PC上使用org-mobile-push和org-mobile-pull (这有个问题我还没有看到 emacs里有配置org mobile remote仓库的内容,按理应该要有的吧)。
但是我总觉得没有必要这么绕,直接用git应该不会这么复杂吧