Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git and Git on VSCode: samba shared folder issue

I have a shared folder on ubuntu server 16.04. VSCode Insiders works fine with local folders but on samba shared folders git integration fails ignoring the existing .git folder as you can see in the image below. The share folder has the correct setup with full read/write and it is not hidding the unix dot folders/files. I tried changing different combinations of unix folder access permissions without success. Tried to map the shared folder to a drive letter on windows, no success.

Just in case it could be related: The samba server only accepts connections when clients are using server's ip address like \\192.168.1.100\shared-folder (trying to access with server hostname like \\server-name\shared-folder, fails)

Any recomendation will be appreciated.

Git on VSCode just ignoring .git folder

I try using git bash and now I see it is a git related problem:

enter image description here

tl;dr

The samba server is a virtual machine on my windows 10 pc as host. I'm using this to develop and test several kind of web apps. The shared folder is used only for access the source code and made changes with a modern code editor. Git is installed on my windows pc and git bash is enable on VSCode terminal. VSCode terminal 'git status' command fails too listing all project files as untracked.

like image 267
Pablushka Avatar asked Oct 30 '22 04:10

Pablushka


1 Answers

I have a similar setup and had the same problem. I issued the following commands in VSCode Terminal (on the Windows machine):

git config core.autocrlf true
git config core.filemode false

Fixed the problem for me.

like image 74
Paul Taylor Avatar answered Nov 15 '22 07:11

Paul Taylor