Error Connecting to a Git Repository on Windows - null is not recognized as an internal or external command

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When attempting to connect Fisheye to a Git repository on Windows, an error is thrown:

1 Unable to clone remote repository: ssh://git.atlassian.com - ['"null"' is not recognized as an internal or external command,, operable program or batch file., fatal: The remote end hung up unexpectedly] - Cloning into bare repository clone...

Cause

  • The msysgit installation has not been installed with the proper binaries that Fisheye needs to connect to the Git server, and must be defined on the user PATH.

  • This may also be caused by Fisheye not being able to find the 'ssh' command on the path.

Resolution

  • Please reinstall mysysgit with the Git binaries (in particular, the git command). Also please ensure that the git binary is on the PATH for the user that is running Fisheye. See these Fisheye specific notes. For more information, please see the msysgit documentation.

  • Please install ssh, and make sure that it is on your PATH (i.e. typing ssh at a command prompt finds the program). Then restart Fisheye.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.