Git not working: missing /dev/null

1,586 views
Skip to first unread message

Yanis Lukes

unread,
Jan 7, 2017, 5:13:39 AM1/7/17
to git-for-windows
Whenever the git executable is run, it throws the following error:
fatal: open /dev/null or dup failed: No such file or directory

Firstly, /dev/null sounds like a Unix/Linux term. What is /dev/null in case of Windows? Secondly, it worked before, so an Windows Update might have broken it.

A user who had a similar problem fixed it by: "The problem was that the Null service was not running on my machine and had to edit the registry to get it working properly again..."
What specifically has to be changed in the registry? Is the Null service in Services?

More info on the issue I created on Github for Git For Windows - https://github.com/git-for-windows/git/issues/1016

Yanis Lukes

unread,
Jan 8, 2017, 1:12:27 PM1/8/17
to git-for-windows
Well since I have Windows 10 and the Anniversary update. Might as well just use "Bash on Ubuntu on Windows". Works great, though my Batch file for launching git might not be advanced in enough for every case. In case someone is interested, here is my git.bat:
 
@echo off

set a=%*
set a=%a:\=/%

bash -c 'git %a%'
Reply all
Reply to author
Forward
0 new messages