Unsync'd Git Repository in Dropbox

前端 未结 3 1547
一整个雨季
一整个雨季 2021-02-06 11:17

I have a git repository (and working directory) that is stored in my Dropbox so I can move back and forth between computers without having to commit or stash (read: without any

3条回答
  •  再見小時候
    2021-02-06 11:45

    You may want to check where you are setting your umask; it may be that dropbox is starting with a different umask than what your shell has. However, I believe that git ignores the group/other permissions and is mostly concerned with the execute bit, which should not be affected by the umask. Some thoughts for debugging:

    • Can you reproduce this on-demand? How?
    • What operating systems are you synchronizing between?
    • If you git checkout -f on the files in question, do they get the correct permissions?
    • If you simply chmod a file on one system, does that change get propagated?

提交回复
热议问题