Comments (2)
It's line ending of the file and that depends on the git config.
Please search the internet before asking questions.
from msys2.github.io.
Oops! I forgot I did change the core.autocrlf
config of C:\Program Files\Git\cmd\git.exe
before. And the cause of this issue is indeed due to the core.autocrlf
values are different:
- CMD version of Git:
true
- MSYS version of Git:
false
C:\Test\msys2.github.io>git config core.autocrlf
true
C:\Test\msys2.github.io>
hwhsu1231@vb-windows MINGW64 /c/Test/msys2.github.io
$ git config core.autocrlf
hwhsu1231@vb-windows MINGW64 /c/Test/msys2.github.io
$
Therefore, after changing the core.autocrlf
value of Git in MSYS shell to true
as well, the problem is sovled.
hwhsu1231@vb-windows MINGW64 /c/Test/msys2.github.io
$ git config core.autocrlf
hwhsu1231@vb-windows MINGW64 /c/Test/msys2.github.io
$ git config --global core.autocrlf true
hwhsu1231@vb-windows MINGW64 /c/Test/msys2.github.io
$ git config core.autocrlf
true
hwhsu1231@vb-windows MINGW64 /c/Test/msys2.github.io
$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
hwhsu1231@vb-windows MINGW64 /c/Test/msys2.github.io
$
from msys2.github.io.
Related Issues (20)
- Removing of mirror HOT 4
- Suggestion: Improve navigation from main page HOT 2
- using msys with windows terminal HOT 4
- error: inlining failed in call to 'always_inline' HOT 1
- Large exe file on mingw for `Hello World!` program
- Mingw64 from msys2 creates corrupt executable HOT 10
- msys2 create dBase III DBT file๏ผ HOT 2
- docs page with conflicting names in windows
- can I install old version gcc? HOT 3
- Request: ARM64 version of libusb HOT 4
- Missing devel headers in clangarm64 HOT 2
- Issue with pacman in msys2-x86_64-20230718.exe? HOT 2
- [Mirrors] Modify Tencent's mirror domain HOT 2
- Cannot do normal Linux mount HOT 1
- Issues installing caused by Windows Security HOT 6
- [Documentation] in docs/environments "UCRT only ships by default on Windows 10" should be updated to include Windows 11 as well HOT 1
- Weird interaction with git add -p and Notepad++ (git hangs) HOT 2
- Use 'SUMMARY.md' to describe navigation structure by 'mkdocs-literate-nav' plugin
- opam not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msys2.github.io.