You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git: 'remote-https' is not a git command. See 'git --help'. error when cloning a repository #6605
more-info-neededThe submitter needs to provide more information about the issuesupportIssues likely related to one person's environment or configuration
I experience this error whenever I try to clone a repository. The error comes regardless if the repository is private or public. As a result, I cannot clone any repository. The same error comes if I try and create a local repository and publish it to Github.
Github Desktop Version: 1.5.1
OS: Windows 10 64 bit
Reacted by Amit Kumar, PRASHANT KAILAS KEDAR, Gerard Reches, Nandhagopal G, zhclv, Rahul Mascarenhas and Adaloglou Nikolas
Thanks for the report @OneDev99. This looks like it may be an issue with your installation of GitHub Desktop. Have you tried reinstalling GitHub Desktop again? If not, I would recommend deleting the following two directories to allow you to perform a fresh installation:
I tried the above method and was able to successfully clone a repository. I closed the application and opened it again to clone another repo but it showed the same exact error.
@OneDev99 sorry to hear things still aren't working. Are you running any antivirus software on your machine that could be mistakenly flagging the binaries that GitHub Desktop ships with?
I had the idea already and have checked my virus chest. I'm using Avast and there are no false flags. I updated my Github Desktop to the latest version released just now and was able to clone a repository and commit changes. I restarted my desktop and now when I click on publish to Github, I get the same error. I found the remote https file inside my Visual Studio folder. (C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin). I copied the file into the same folder in %appdata% under the github folder and the error message changed to a simple line now saying, "Unknown Error". I'm currently uninstalling Visual Studio and Github Desktop. Will update if reinstalling them changes anything.
Reinstalling both Github Desktop and updating Microsoft Visual studio to version 15.9.5 has fixed the error for now. I'll close the issue after thoroughly checking if the error still comes after some time or after restarting my pc.
The issue came again. I have to uninstall Github every time and even manually delete files from appdata and localappdata folders. And then reinstall it for the error to go away. And it reappears after closing the app once.
@OneDev99 do you also run into this issue when attempting to clone a repository from the command line using the git clone command? If not, try downloading Git for Windows and running a git clone <REPO_URL> to see if the same issue occurs. That will help narrow down if your something on your machine is flagging that specific file.
I got this error too. It turned out that in my case it was indeed Avast that was playing tricks on me. Avast categorized remote-https as a suspicious file and quarantined it. Please look at the list of files that Avast quarantined, check if git stuff is there and if so, add exceptions for these files.
This happens because the "git-remote-http.exe" file and the desktop app are in different places. So, finding the said file and add it to path in system variables so the desktop app could access it from anywhere would solve the issue. The "git-remote-https.exe" file is most likely found in - "C:\Users'UserName'\AppData\Local\GitHubDesktop\app-2.9.4\resources\app\git\mingw64\bin".
Find yours and set it to path. A re-install may also solve it.
Add the path of C:\Users\yourPcName\AppData\Local\GitHubDesktop\app-2.9.4\resources\app\git\mingw64\bin in system variables which are located in environment variables.
AppData folder is hidden so unhide folders then you will be able to see this folder.
I have done this on windows and it worked for me.
more-info-neededThe submitter needs to provide more information about the issuesupportIssues likely related to one person's environment or configuration
Activity
steveward commentedon Jan 14, 2019
Thanks for the report @OneDev99. This looks like it may be an issue with your installation of GitHub Desktop. Have you tried reinstalling GitHub Desktop again? If not, I would recommend deleting the following two directories to allow you to perform a fresh installation:
%AppData%\GitHubDesktop%LocalAppData%\GitHubDesktopThen install GitHub Desktop again and see if you are able to perform a clone operation successfully.
negiyosai commentedon Jan 18, 2019
I tried the above method and was able to successfully clone a repository. I closed the application and opened it again to clone another repo but it showed the same exact error.
steveward commentedon Jan 18, 2019
@OneDev99 sorry to hear things still aren't working. Are you running any antivirus software on your machine that could be mistakenly flagging the binaries that GitHub Desktop ships with?
negiyosai commentedon Jan 18, 2019
I had the idea already and have checked my virus chest. I'm using Avast and there are no false flags. I updated my Github Desktop to the latest version released just now and was able to clone a repository and commit changes. I restarted my desktop and now when I click on publish to Github, I get the same error. I found the remote https file inside my Visual Studio folder. (C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin). I copied the file into the same folder in %appdata% under the github folder and the error message changed to a simple line now saying, "Unknown Error". I'm currently uninstalling Visual Studio and Github Desktop. Will update if reinstalling them changes anything.
negiyosai commentedon Jan 18, 2019
Reinstalling both Github Desktop and updating Microsoft Visual studio to version 15.9.5 has fixed the error for now. I'll close the issue after thoroughly checking if the error still comes after some time or after restarting my pc.
negiyosai commentedon Jan 18, 2019
The issue came again. I have to uninstall Github every time and even manually delete files from appdata and localappdata folders. And then reinstall it for the error to go away. And it reappears after closing the app once.
steveward commentedon Jan 29, 2019
@OneDev99 do you also run into this issue when attempting to clone a repository from the command line using the
git clonecommand? If not, try downloading Git for Windows and running agit clone <REPO_URL>to see if the same issue occurs. That will help narrow down if your something on your machine is flagging that specific file.guptashashank31999 commentedon Sep 6, 2019
what should i have too dooo i have reinstall the software but again i get same messgage

AbdulWahabTanveer commentedon Jun 7, 2020
uninstalling Avast fixed the problem for me
seems like avast has problem with every Good thing
gerardreches commentedon Aug 11, 2020
I've reinstalled and it worked JUST UNTIL I rebooted my PC. In need of a permanent solution.
tierninho commentedon Aug 12, 2020
@gerardreches Thanks for reaching out. Please fill a new issue so we may address it separately. Include the logs if possible. Cheers.
GeorgeAlexandruS commentedon Oct 20, 2020
I have the same issue, anyone managed to solve this?
alchaki2009 commentedon Oct 20, 2020
Duplicate of #
bkowal commentedon Jan 2, 2021
I got this error too. It turned out that in my case it was indeed Avast that was playing tricks on me. Avast categorized remote-https as a suspicious file and quarantined it. Please look at the list of files that Avast quarantined, check if git stuff is there and if so, add exceptions for these files.
EricChoLiu commentedon Feb 20, 2021
In Windows 10, I secceed in using the git clone command in the Powershell.
In Ubuntu or WSL, there is no problem in terminal.
camkon commentedon Oct 8, 2021
This happens because the "git-remote-http.exe" file and the desktop app are in different places. So, finding the said file and add it to path in system variables so the desktop app could access it from anywhere would solve the issue. The "git-remote-https.exe" file is most likely found in -
"C:\Users'UserName'\AppData\Local\GitHubDesktop\app-2.9.4\resources\app\git\mingw64\bin".
Find yours and set it to path. A re-install may also solve it.
Realsantosm commentedon Oct 15, 2021
I am facing then same error, I tried different options to solve but of no use.........😢😒
Cloning into 'D:\GitHub-Online\portfolio-professional\portfolio-professional'...
git: 'remote-https' is not a git command. See 'git --help'.
Would you like to retry cloning ?
Hamza804-latif commentedon Oct 21, 2021
I clone directly from git bash and it worked but not working from github desktop
Hamza804-latif commentedon Oct 30, 2021
Add the path of C:\Users\yourPcName\AppData\Local\GitHubDesktop\app-2.9.4\resources\app\git\mingw64\bin in system variables which are located in environment variables.
AppData folder is hidden so unhide folders then you will be able to see this folder.
I have done this on windows and it worked for me.
kasia129 commentedon Dec 8, 2021
I can confirm that what @Hamza804-latif suggested worked for me as well.