Search code examples
bashgitmsys2

Why Git Bash vs msys2 git throw different git status?


Assume I have a git folder in /d/projects/project01.

When I do git status in Git Bash, and git status in msys2, it throws different output (image below) Why this happen and you could I make those 2 work identically?

git bash status vs msys64 conflict


Solution

  • Check the output of git config core.autocrlf in both session.

    If it is false in git bash, but not in mingw2, set it to false in the second mingw2 session:

    git config --global core.autocrlf false