'Git - unable to push after commit - "Remote: Error: unable to write file

I'm using VS2022, Cloned Git repo locally, did some changes to code, committed the change. Code is up to date (nothing to pull). When I'm trying to push to remote Repo - I get this error:

Pushing master
Enumerating objects: 22, done.
Delta compression using up to 8 threads
Total 18 (delta 8), reused 0 (delta 0), pack-reused 0
Remote: Error: unable to write file //path_to_network_share_with_remove_repo/./objects/tmp_objdir-incoming-a17864/a2/31656d680ed3b8a48ceffc67f25597a10ea9c6: No such file or directory        
Remote: fatal: failed to write object        
Error: remote unpack failed: unpack-objects abnormal exit
To \\path_to_network_share_with_remove_repo\
Error: master -> master (unpacker error)
failed to push some refs to '\\path_to_network_share_with_remove_repo'

Any idea what's wrong? I'm able to write to this 'objects' directory . Also, I'm able to pull changes from remote repo, and even able to commit and push small changes (tried editing 1 file). This particular commit includes deleting, creating , and editing files. Tried multiple times to clone remote repo again to new place, do the changes and commit and push. Any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source