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
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.