简体   繁体   中英

Sudo and git commands

I have been trying to resolve permission problems with Terminal.

Git would accept only commands with sudo and entering password, which it makes pushing anything so long.

I have tried few advices I found online but none of them helped.

权限问题

I will be very appreciative if you can help me out.

Thats whats comes up when i insert ls -l. ls -l outcome

When using sudo chown message is zsh: no such file or directory ls -l image

Try to change permissions to the .git folder.

sudo chown <user> /angelweb/.git -R

ps: don't do git init in an existent repository

First of all your need to define whats wrong, use ls -l to see permissions. If the problem is there use chmod/chown to resolve it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM