Github for Version Controlling
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.
- 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