Does Git generally choke on mounted drives? Or just Git GUI's?

前端 未结 2 1162
有刺的猬
有刺的猬 2021-01-12 23:11

I know I should be diehard and use git in the terminal, but I use a Git client on Mac called Sourcetree to make the whole thing just a bit more sexy.

The problem is a

2条回答
  •  执念已碎
    2021-01-13 00:06

    It is git in general. This answer suggests, it is because of the filelocking. For more info, just search SO for "git samba"

    From my experience, operating on a non-bare repo on a network drive is a bad idea.

    For best-practises: http://git-scm.com/book/ch4-1.html

    So either:

    1. Setup an SSH server on you NAS and push/pull to that
    2. Map your network share (as you have now) but put a bare repo on that. Then, push/pull to that one.

    In any case it is recommended that the git repo with the working copy resides on a local disk.

提交回复
热议问题