Git bash Error: Could not fork child process: There are no available terminals (-1)

后端 未结 28 2104
抹茶落季
抹茶落季 2020-12-12 12:17

I have had up to 8 git bash terminals running at the same time before.

Currently I have only 2 up.

I have not seen this error before and I am not understand

相关标签:
28条回答
  • 2020-12-12 12:38

    On a more recent version of git for windows, the process to kill in task manager was "GitExtensions.exe". Killed that and the terminals restarted with no issues.

    0 讨论(0)
  • 2020-12-12 12:40

    Found a similar issue and solution in google groups

    I opened a windows command prompt and ran the command

    $ tasklist
    

    It looks as though the ssh connections I had made in my git bash shells weren't being closed when those windows were closed and were hanging the available git bash shell windows.

    This may be a dangerous solution but from the windows command prompt I ran

    $ taskkill /F /IM ssh.exe 
    

    Everything appears to be working again after this. It may not have directly been an issue of orphan processes, but this worked for at least for me.

    Additional note: you can also kill other processes, for example like:

    $ taskkill /F /IM vim.exe
    
    0 讨论(0)
  • 2020-12-12 12:40

    Reinstalled git, it is now working fine.

    0 讨论(0)
  • 2020-12-12 12:41

    i found that killing msys2 terminal in task manager solves the problem

    0 讨论(0)
  • 2020-12-12 12:41

    Open Task manager, find bash.exe process and kill it. Helped in my case.

    0 讨论(0)
  • 2020-12-12 12:41

    In system bash type:

    ps

    Kill any bad looking process:

    kill -9 <ID>

    Worked for me.

    0 讨论(0)
提交回复
热议问题