MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

The git in msys2 is not compatible with git-for-windows releases

Open lygstate opened this issue 1 year ago • 1 comments

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

lygstate avatar Aug 22 '24 05:08 lygstate

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?

rimrul avatar Aug 22 '24 11:08 rimrul

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.

eabase avatar Nov 03 '24 02:11 eabase