3

I'm a new user of GIT on windows. I have been using GIT on linux for a while but for some reason, I need to use GIT on windows. Now my problem is GIT bash for windows does not perform any remote operation and returns to command prompt with no msgs. For eg: git fetch, git pull, git remote show origin, etc will give you no result. Where as it does give me output for local operations like git log, git branch, git commit, etc.

Also the GIT GUI Client gives error "Command Failed" for remote operations.

I tried re-installing it several times. I tried a previous version 2.5.3 of GIT as well (latest version is 2.6.0).

Does anyone know how to solve this issue?

1 Answer 1

1

Check the result of git remote -v

If there is no remote defined, a push or fetch wouldn't know where to look.

You can fix the issue with a

git remote add origin /url/of/remote/repo

If the normal setup doesn't work for you, uninstall, and then unzip PortableGit-2.6.1-64-bit.7z.exe anywhere you want, and add C:\path\to\PortableGit-2.6.1-64-bit\bin to %PATH%.

Then, from the repo root folder, try a git ls-remote to see if the remote 'origin' is accessible.

If there are errors like:

Faulting application name: git-remote-https.exe, version: 2.6.0.0, 
time stamp: 0x00000000 
Faulting module name: LIBEAY32.dll, version: 1.0.2.4, 
time stamp: 0x00000000 

Try and follow issue 133 comment. Copy:

c:\winprg\git-sdk-64\mingw64\bin\ssleay32.dll
c:\winprg\git-sdk-64\mingw64\bin\libeay32.dll
to
c:\Windows\System32\
Sign up to request clarification or add additional context in comments.

14 Comments

git remote -v gives proper url. :(
Good thinking ;) Let's wait for the OP's feedback now.
@VinayKumarTiwary is it an https url or an ssh one?
@VonC I tried your suggested steps. Unfortunately, this is also not working. The application crashes every time I try a remote operation. I looked in event viewer for detailed error and found this. Faulting application name: git-remote-https.exe, version: 2.6.0.0, time stamp: 0x00000000 Faulting module name: LIBEAY32.dll, version: 1.0.2.4, time stamp: 0x00000000
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.