Sync directories containing git repository with unison

前端 未结 2 1092
一整个雨季
一整个雨季 2021-02-15 17:04

I want to sync a directory containing a git repo of my dotfiles on two machines. Both machines will make changes to the files in the repo. Normally I use unison for syncing dire

2条回答
  •  星月不相逢
    2021-02-15 17:33

    A byte-by-byte sync here doesn't work because even with the same files and git state the internal git files may be different.

    That is why you don't synchronize a .git folder (other have tried with dropbox, the result was not satisfactory)

    I would recommend using git bundle, but the process can be a bit convoluted.

    There are other tools for managing and synchronizing dotfiles. One very good one is RichiH/vcsh, presented in GitMinutes #13, and in this blog post.

提交回复
热议问题