I'm setting up git on my new Windows 7 machine and I'm hitting a roadblock when it comes to getting github to acknowledge my ssh key. I am doing things a little different from the standard script in that I would rather not use cygwin and prefer to use my powershell prompt. The following is what I did:
I try to now do a clone [email protected]:togakangaroo/ps-profile.git which rejects my authentication:
Permission denied (publickey). fatal: The remote end hung up unexpectedly
Past experience says that this means git is not recognizing my key. What steps am I missing?
I have a feeling that I need to somehow configure git so that it knows where my ssh keys are (though it would seem it should look there automatically) but I don't know how to do that.
Another possible clue is that when I try to run git config --global user.name "George Mauer" I get an error
fatal: $HOME not set
I did however set up a HOME environment user variable with the value %HOMEDRIVE%%HOMEPATH%
By default, Git is installed on Linux and macOS computers as a command line option. However, Microsoft Windows does not include a Git command.
To install Git, navigate to your command prompt shell and run the following command: sudo dnf install git-all . Once the command output has completed, you can verify the installation by typing: git version .
I had the same problem. I accidently added the wrong directory to the path.
After I changed that from *\Git\bin\
to *\Git\cmd\
everything worked.
git.cmd
sets up the environment variables.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With