I've created an SSH key and when I run ssh -T git@gitlab.com
in GitBash as admin I get Welcome to GitLab, @myname
so that's working, but the moment I run the same within a directory where all my files that i'm trying to push to an empty git project I get git@gitlab.com: Permission denied (publickey).
I've read the docs but cant figure out what I'm doing wrong why does it work in the root of the PC and not in the folder where I actually have the file I need to send to git?
Working
My.Name@My-Mac MINGW64 ~
$ ssh -T git@gitlab.com
Welcome to GitLab, @joshwordshop!
Not working
My.Name@My-Mac MINGW64 /c/blah/blah/blah/blah/blah/blah(master)
$ ssh -T git@gitlab.com
git@gitlab.com: Permission denied (publickey).
NOTE: Running windows on a Mac so if you post any commands can you do so in their windows form, thank you in advanced