I'm trying to use the command
git push origin branch
to push on gitHub (public repository)
I have the following error :
ERROR: Permission to emilyreese/connaissance.git denied to vulkanosaure fatal: Could not read from remote repository
I'm using git for windows (i tried both 64 bits and 32 bits version)
What i already did :
- generate a ssh key using :
ssh-keygen -t rsa -b 4096 -C "my_email@example.com"
- add this ssh key to the ssh-agent :
ssh-add ~/.ssh/id_rsa
- add the key in ~/.ssh/id_rsa.pub into my GitHub account
- use the command
ssh-add -l -E md5
to obtain the fingerprint of my key, and compare it to what i see on my GitHub account - change the file my_repository/.git/config and replace url = https://github.com/path_to_repo.git by git@github.com:path_to_repo.git to try HTTPS and SSH methods
Any help will be much appreciated !