Hello everyone here, i was finally able to push my code to fedora [[ Overview - fedora-commops/fedora-happiness-packets - Pagure.io]]]]
Here are the steps i followed:
- I created an ssh key and added it to ssh-agent.
To create a key run this command in your terminal
$ ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
And to add it to ssh-agent run
$ ssh-add ~/.ssh/id_rsa
2). I added my public key to my git account
. After that i added the same ssh key to my forked repository of fedora, and finally changed my url from the “http url” to “ssh-url” and this can be done in two ways either you do it manually by editting the .gitconfig or use git remote set url “ssh-url”.3.)Then committed my code and pushed it, but it asks for the password to provide access to the private key since you added it to ssh-agent. you have to enter the right password but for my sake i used “ssh-agent”
That’s how i managed to do it .
For more information on this topic you can visit [[[[Connecting to GitHub with SSH - GitHub Docs]]]].