'Git/Bash in Windows changes tabwidth
I added and commited a branch locally (in a Docker
container mounted as volume and locally in Windows).
The file contained tabs which had a width of 2 spaces. (they had two spaces in neovim and in Visual Studio Code)
Then I pushed that Branch onto gitlab
.
And in gitlab
the tabs I added to that file had a width of 8 spaces.
I tried using the autocrlf
option in .gitconfig
but it did not seem to have an effect.
I did the add
and commit
inside the Docker
container.
But the git push
I had to do in gitbash
because of authentication issues.
Since I still see two spaces in my local file and in the Docker
container it must be the git push
from gitbash
that changed the tabwidth.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|