Using Git without Sudo in many accounts

前端 未结 5 2080
说谎
说谎 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-08 23:52

    You can verify members using

    members groupname
    

    Then you can set the permission level for the username:groupname pair,

    change the ownership
    sudo chown -v -R username:groupname sprout
    chmod -R g+w .git/*
    

提交回复
热议问题