The git in msys2 is not compatible with git-for-windows releases
Description / Steps to reproduce the issue
The index file created by git in msys2 are not compatible with the index file created by https://github.com/git-for-windows/git/releases
Can the git in msys2 use the source code from https://github.com/git-for-windows/git/releases
Expected behavior
The index file created by git in msys2 compatible with the index file created by https://github.com/git-for-windows/git/releases
Actual behavior
Is not compatible and causing repeat re-updating the index when do reset --hard
Verification
- [X] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)
Windows Version
MSYS_NT-10.0-22621
Are you willing to submit a PR?
Yes
Can the git in msys2 use the source code from https://github.com/git-for-windows/git/releases
It could, but that probably wouldn't help you, because most changes in Git for Windows (compared to upstream Git) would only be compiled for native Windows targets.
Could you provide steps to reproduce your issue, so we can investigate what is incompatible here?
It's in my recent experience that git in MSYS doesn't work, so I have been using the native windows installed git, and added the PATH to the .bashrc file.
# Add Windows GIT
DIR="/c/Program Files/Git/cmd"
if [ -d "${DIR}" ] ; then
PATH="${PATH}:${DIR}"
fi
export PATH
No idea, why this wasn't already included in the .bashrc template, at least commented out.