How to use the Git command without sudo?

1

Whenever I need to use some commands like git pull, git stash, a message appears that the operation could not be performed because the permission is not sufficient. How do I not need to use sudo?

    
asked by anonymous 19.02.2016 / 13:36

1 answer

3

You have two options:

1) Checkout as another user. ("git checkout ...").

2) Change the permission throughout the project so that the user you want can use the file system. (chown -R)

    
19.02.2016 / 13:43