Skip to content

git: 'remote-https' is not a git command. See 'git --help'. error when cloning a repository #6605

Closed

Description

@negiyosai

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

girhub

Activity

  1. added
    more-info-needed
    on Jan 14, 2019
  2. steveward commented on Jan 14, 2019

    @steveward
    Contributor

    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%\GitHubDesktop

    Then install GitHub Desktop again and see if you are able to perform a clone operation successfully.

  3. negiyosai commented on Jan 18, 2019

    @negiyosai
    Author

    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.

  4. steveward commented on Jan 18, 2019

    @steveward
    Contributor

    @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?

  5. negiyosai commented on Jan 18, 2019

    @negiyosai
    Author

    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.

  6. negiyosai commented on Jan 18, 2019

    @negiyosai
    Author

    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.

  7. negiyosai commented on Jan 18, 2019

    @negiyosai
    Author

    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.

  8. added
    support
    on Jan 22, 2019
  9. steveward commented on Jan 29, 2019

    @steveward
    Contributor

    @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.

  10. guptashashank31999 commented on Sep 6, 2019

    @guptashashank31999

    what should i have too dooo i have reinstall the software but again i get same messgage
    Screenshot (51)

  11. AbdulWahabTanveer commented on Jun 7, 2020

    @AbdulWahabTanveer

    uninstalling Avast fixed the problem for me
    seems like avast has problem with every Good thing

  12. gerardreches commented on Aug 11, 2020

    @gerardreches

    I've reinstalled and it worked JUST UNTIL I rebooted my PC. In need of a permanent solution.

  13. tierninho commented on Aug 12, 2020

    @tierninho
    Contributor

    @gerardreches Thanks for reaching out. Please fill a new issue so we may address it separately. Include the logs if possible. Cheers.

  14. GeorgeAlexandruS commented on Oct 20, 2020

    @GeorgeAlexandruS

    I have the same issue, anyone managed to solve this?

  15. alchaki2009 commented on Oct 20, 2020

    @alchaki2009

    Duplicate of #

  16. bkowal commented on Jan 2, 2021

    @bkowal

    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.

  17. EricChoLiu commented on Feb 20, 2021

    @EricChoLiu

    In Windows 10, I secceed in using the git clone command in the Powershell.
    In Ubuntu or WSL, there is no problem in terminal.

  18. camkon commented on Oct 8, 2021

    @camkon

    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.

  19. Realsantosm commented on Oct 15, 2021

    @Realsantosm

    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 ?

  20. Hamza804-latif commented on Oct 21, 2021

    @Hamza804-latif

    I clone directly from git bash and it worked but not working from github desktop

  21. Hamza804-latif commented on Oct 30, 2021

    @Hamza804-latif

    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.

  22. kasia129 commented on Dec 8, 2021

    @kasia129

    I can confirm that what @Hamza804-latif suggested worked for me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-info-neededsupport

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions