Github for Version Controlling

Sadil Chamishka
1 min readSep 22, 2019

--

When you push the code to the remote repository, it is needed to always type the password. But we can save a public key on Github profile and keep the private key locally. Then everything becomes very simple.

  1. Create a key-pair. You will be asked to where to store it. You can give as .ssh/github. Then the key pair will be saved there.

ssh-keygen -t rsa -b 4096 -C “sadil chamishka”

2) Save the public key in Github.

cat github.pub

--

--

Sadil Chamishka
Sadil Chamishka

Written by Sadil Chamishka

Associate Technical Lead @ WSO2 IAM TEAM

No responses yet