Git Command Does not Work in Windows CMD
I am trying the below command in Windows CMD for Bitnami Gitlab VM machine at Windows 10.
git clone email@example.com:user/project.git
It works in Git Bash but the same command does not work for Windows CMD.
- bash: nano: command not found at Windows git bash
- Splitting a multi-line environment variable into lines
- Jenkins path to git Windows master / Linux slave
- How to git pull for multiple repos on windows?
- Git bash under windows
- ssh and GIT: couldn't resolve hostname
I suspect when used in Windows CMD ssh is looking for wrong keys and the output is:
Permission denied (publickey)
The command works in Git Bash terminal but I like to use Windows CMD.
How can I fix the issue?
2 Solutions collect form web for “Git Command Does not Work in Windows CMD”
I suspect when used in Windows CMD ssh is looking for wrong key
You don’t have to suspect. You can see it.
- where ssh is indeed
HOMEis set to the parent folder of your
ssh -Tv firstname.lastname@example.org
If the wrong ssh key is used, defines it in a
Host mygitserver Hostname 192.168.1.10 User git IdentityFile "/C/path/to/my/private/key"
You need to set the
HOME so that the CMD will be able to find your ssh keys under the