I created a directory /var/www
to store my web apps clone in. When I initially cloned the app from GitHub it required me to use sudo and every time I do a git pull
it's requiring sudo. I'm running into some problems because of this. For example, my ssh keys are not matching up. So when I do my git pull
, I'm having to use HTTPS instead of ssh and manually enter my username and password every time I want to pull and update my app. How do I configure this so I don't have to use sudo every time I use git?