Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
lygstate opened this issue Aug 22, 2024 · 2 comments
Open
1 task done

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

lygstate opened this issue Aug 22, 2024 · 2 comments
Labels

Comments

@lygstate
Copy link

lygstate commented Aug 22, 2024

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

Windows Version

MSYS_NT-10.0-22621

Are you willing to submit a PR?

Yes

@lygstate lygstate added the bug label Aug 22, 2024
@Biswa96 Biswa96 changed the title The git in msys2 is not compatible with https://github.com/git-for-windows/git/releases The git in msys2 is not compatible with git-for-windows releases Aug 22, 2024
@rimrul
Copy link
Contributor

rimrul commented Aug 22, 2024

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?

@eabase
Copy link

eabase commented Nov 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants