If i use command
git push
It says fatal: unable to access 'http://***.git The requested URL returned error: 403 If i add sudo sudo git push it works fine. Where should i add permissions?
I tried
sudo find /var/www/.git -type d -exec chmod 0777 {} +
And
sudo find /var/www/.git -type f -exec chmod 0777 {} +
But it only helps me to commit from my user