Git on Windows 7 expecting Linux? /dev/null not found error

Posted by Klikini on Super User See other posts from Super User or by Klikini
Published on 2014-08-24T21:39:21Z Indexed on 2014/08/24 22:24 UTC
Read the original article Hit count: 2130

Filed under:
|
|

I have installed git (not GitHub) on Windows 7 x64 Home Premium, and I cannot get it to work. Opening Git Bash outputs the following:

Welcome to Git (version 1.9.4-preview20140815)

Run 'git help git' to display the help index.
Run 'get help <command>' to display help for specific commands.
sh.exe": /dev/null: No such file or directory
sh.exe": /dev/null: No such file or directory
sh.exe": /dev/null: No such file or directory
sh.exe": /dev/null: No such file or directory
sh.exe": /dev/null: No such file or directory
sh.exe": /dev/null: No such file or directory

Andy@ANDY-DELL ~
$

If I open the Git GUI, I get a this box:

Title: git-gui: fatal error Content:

fatal: open /dev/null or dup failed: No such file or directory

Git Gui requires Git 1.5.0 or later.

I also tried GitHub for Windows, but I got an internet connection error when attempting to clone a repo, even though my connection is fine. Is this possibly related?

I have learned so far that /dev/null is the Linux version of the Windows NUL, but why is it trying to do this on Windows?

Thanks in advance.

© Super User or respective owner

Related posts about windows-7

Related posts about git