Using Git without Sudo in many accounts

前端 未结 5 2073
说谎
说谎 2020-12-08 23:34

How can you use Git without Sudo in multiple accounts in one Ubuntu?

My Ubuntu has many accounts. The creation of new accounts has made Git inaccess

5条回答
  •  春和景丽
    2020-12-09 00:19

    I would guess the ownership of the .git directory are the problem.

    You shouldn't use one source tree from different users - it's likely to lead to problems.

    The git executable is not the issue. It should be owned by root, and have 755 permissions. (-rwxr-xr-x)

    In other words you can use git from multiple accounts, but you shouldn't share a single working directory.

提交回复
热议问题