I have followed the instructions to set up a private git respository on my raspeberry pi. All goes well until I try
git push pi master
at that point I get the following error:
fatal: Unable to create temporary file '/mnt/data/git-repos/sublime.git/./objects/pack/tmp_pack_XXXXXX': Permission denied
My system details are
Distributor ID: Debian Description: Debian GNU/Linux 7.8 (wheezy) Release: 7.8 Codename: wheezy
I am logging in to git with the same account
pi that I used to set up the respository directory on the raspberry pi. On the raspberry pi I needed to use sudo to set up the directory. How do I give access to my git login to access the directory?