-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git: 'remote-https' is not a git command. See 'git --help' #10345
Comments
I am gitting this whenever I push my local changes to the remote repository. Please try to fix this problem |
Can you try reinstalling GitHub Desktop by following these steps?
Let me know if that doesn't get things working. |
I'll join this issue since it has been opened many times before but this instance is recent. I'm getting the same problem: It doesn't matter if it's a clone, push, fetch or pull, it will appear every time. Reinstalling the application made it work just once, and the next time I rebooted my PC it appeared again. |
On Windows 10:
The issue persists. |
@gerardreches thanks for testing that out. Are you running any security/antivirus software on this machine that could be interfering with the installation of GitHub Desktop? |
Hey @steveward , there is a HUGE amount opened issues for this same problem, and I think they should be merged to focus on a single thread: #6605 This are just some of the opened issues for this same problem that I've found with a simple search, and I'm sure that many more can be found. This is a critical issue since we have to end up using the command line for our Git tasks. It's reason enough for most people to not use Github Desktop anymore. If you want, I can open a new issue detailing the problem the best I can and then you can merge all these other opened issues into it so that we can work on it from there. |
And about your question, no, the only security/antivirus software that I'm running is Windows Defender, that comes in all Windows 10 installations. I also have a MacBook Pro and Github Desktop is running with no issues there, so something to ask might be the OS that the people with this issue are running. There's nothing that seems wrong about the installation, and even when opening Github Desktop with admin privileges the error still appears. It's nothing that shows up when you open it, but when you attempt to do any action that makes Github Desktop try to connect with any remote repository. |
Hi @gerardreches, thanks for doing the digging to produce that list of related issues. We see this issue every now and then but we've never been able to reproduce it. For some users their anti virus seems to be the culprit and for others a complete reinstallation seems to solve it implying that something (AV or other tool) has modified the Git folder we bundle with GitHub Desktop. We would love some help trying to get to the bottom of this, I've got a hunch of what might be going on but I'll need your help to validate it. Do you know if you've installed Git for Windows separately from GitHub Desktop or if you've got any other application installed on your system that bundles Git? Could you open the DevTools console ( How are you launching GitHub Desktop. Via a start menu shortcut, desktop shortcut, or through some other tool? Does your repository contain any Git hooks that you're aware of? Does your repository make use of Git LFS? |
Yes, I've installed it separately from GitHub Desktop and long ago before it. Installed from: https://git-scm.com/ I've also some VMs including Git, but since they are like a separated machine, it shouldn't affect.
Start menu shortcut. Launching it via desktop shortcut made no difference.
Nope, I've never used them.
Negative. But in the past I had one and I had no problems with it. I hope this helps. |
@gerardreches Thanks so much for that information. While it unfortunately disproved my hypothesis of what's going on at least we have some more information to go on. Do you know if this started happening recently or as a result of some upgrade to GitHub Desktop? |
I cannot confirm that, but unless it upgrades in the background, I didn't upgrade it. It was working fine about 2-3 weeks ago, then I went on holidays for a week, and when I was back it was not working. So I assume it started happening recently, but if we take a look at the other opened issues, it's not really something that appeared recently for the first time. |
This comment has been minimized.
This comment has been minimized.
I think I should provide some help with this : |
@KisenaMiyuki that's helpful. Could you try running |
@steveward I have tried PowerShell, cmd and git bash. |
I’m also getting this issue. Reinstalling didn’t help. It makes GH Desktop unusable, so I would appreciate if this was fixed. |
I am also getting this issue and reinstalling didn't help . |
@mahletb and @GrahamSH-EXB are either of you running antivirus software on your system that could be interfering with GitHub Desktop? Did you delete |
I got the same error on virtual server:
|
@zuka1337 - I've just come across the same issue on CentOS 7. Installing |
Same issue on CentOS 7.4. Installing Relevant post: https://stackoverflow.com/a/65876436/6064933 |
I got the same issue on Window 10. Then I took the above measures, but the issue persists. I think there might be a problem with the uninstall method. I just used the uninstall method that comes with windows. The problem is solved. |
Also having this issue on Windows 10, reinstall worked for a single extra push before returning to doing this. Reinstalled and also deleted everything from roaming. |
@Nekuromu any chance you are running antivirus/security software other than Windows Defender on this machine? |
Github Desktop version 2.9.0 (x64), reinstalling (using Control panel or Iobit Uninstaller) doesn't help anymore. It just doesn't work, trying previous versions. |
Adding the folder containing Don't know why this is required as my other computer did not need this workaround for Github Desktop to work properly. |
you saved the time... thanks bro |
this is the answer |
Hopefully this one works for you. |
Doing the |
Describe the feature or problem you’d like to solve
A clear and concise description of what the feature or problem is.
Proposed solution
How will it benefit Desktop and its users?
Additional context
Add any other context like screenshots or mockups are helpful, if applicable.
The text was updated successfully, but these errors were encountered: