Vinra Gunanta Pandia
Vinra Gunanta Pandia

Reputation: 301

Can't Git Push to Mount Folder from Shared Windows Repository (Local Network)

I problem in git push, i have been mount shared folder from windows like syntax below:

mkdir /mnt/windowsFolder/
sudo mount -t cifs -o username=someusername,password=somepasswrd //WindowsServerIP/RepoFolder /mnt/windowsFolder

and then i was clone repo

git clone /mnt/windowsFolder/RepoFolder /var/www/html

then i pull

git pull origin master --------------[success]

but when i going to push, there is the problem. i have some erroe like:

error: insufficient permission for adding an object to repository database ./objects

Upvotes: 0

Views: 680

Answers (1)

Vinra Gunanta Pandia
Vinra Gunanta Pandia

Reputation: 301

i was searching for a few day.. and i have been found the answer of my question: i just mount the shared windows folder with group and user owner:

sudo mount -t cifs -o username=someusername,password=somepasswrduid=vinra,gid=groups //WindowsServerIP/RepoFolder /mnt/windowsFolder

but thanks for @nwinkler for clue

Upvotes: 1

Related Questions