I am developing code on a Ubuntu VM, and have a Windows Repository on a common shared server my team uses.
Git is installed on the Ubuntu machine and not on Windows, currently.
I was receiving errors when trying to do a "git init" in Ubuntu on the Windows share folder so I created the folder in Ubuntu using "git init", then copied it to the folder that housed the project on the Windows server.
In Ubuntu, I did a git clone /run/user/1000/gvfs/smb-share:server..../Repos/demo_trunk/. successfully
I could make edits fine, commit fine but when I try to push OR pull my changes by way of something like "git push origin master", I get an error saying my share, /run/user/1000/gvfs/smb-share:server..../Repos/demo_trunk/. does not appear to be a git repository and could not read from remote repository. It also says, Please make sure you have the correct access rights and the repository exists.
I have already checked to ensure that when I do "git remote -v" that the smb server folder (/run/user/1000/gvfs/smb-share:server..../Repos/demo_trunk/.) exists.
Also, after making the change on my Ubuntu machine and running git status, the output says my branch is ahead of 'origin/master' by 1 commit, which seems to indicate it at least knows something changed in comparison to what is out on the Windows server.
I am at a complete loss and have Googled my head off trying to find a solution. It appears that it could be a permissions issue, but nothing has seemed to be specifically what I need.
Any advice would be most welcome.
5/26/2021
Installed cifs
Reinitialized the repo THROUGH the Ubuntu VM using the mounted drive created by cifs.
Made edit, checked in edit on Ubuntu VM.
Ran "git remote -v"
origin /mnt/cifs/demo/. (fetch)
origin /mnt/cifs/demo/. (push)
Ran "git status"
Your branch is ahead of 'origin/master' by 1 commit.
Ran "git push origin master'
Counting objects: 4, done.
Delta Compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
error: remote unpack failed: unable to create temporary object directory
To /mnt/cifs/demo/.
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to '/mnt/cifs/demo/.'
Ran git push origin/master
fatal: 'origin/master' does not appear to be a git repository
fatal: 'Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I also ran a git reset --hard command (don't remember syntax)
This successfully "reverted" back to what was out on the Windows share drive.