Reputation: 21
I can easily push code to repositories under organization, but cannot push code to repositories I created.
I get
Failed with error: fatal: unable to access 'https://github.com/__username__/__project_name__.git/': The requested URL returned error: 403
using the git cli, everything is fine.
also tried:
how can I resolve this?
Upvotes: 2
Views: 4557
Reputation: 141946
Its pretty simple. Generate keys on your device
Simply follow those steps and you will set up your ssh key in no time:
Generate a new ssh key (or skip this step if you already have a key)
ssh-keygen -t rsa -C "your@email"
Once you have your key set in home/.ssh
directory (or Users/<your user>.ssh
under windows), open it and copy the content
SSH keys
Add ssh key
And you all set to go :-)
Upvotes: 0