Commit b7b368b1 authored by VIHARI PIRATLA's avatar VIHARI PIRATLA

Update cheat-sheet.md

parent 0f01190f
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
To avoid entering username and password everytime you pull/push to a git repository, there are two known ways. To avoid entering username and password everytime you pull/push to a git repository, there are two known ways.
* Add your SSH public key to the remote end (this is possible with either github, gitlab or a private remote server) * Add your SSH public key to the remote end (this is possible with either github, gitlab or a private remote server)
* Setup your `~/.gitconfig` like: * Setup your `~/.gitconfig` like:
```
```bash
# This is Git's per-user configuration file. # This is Git's per-user configuration file.
[user] [user]
name = vihari name = vihari
...@@ -11,6 +12,7 @@ To avoid entering username and password everytime you pull/push to a git reposit ...@@ -11,6 +12,7 @@ To avoid entering username and password everytime you pull/push to a git reposit
[credential] [credential]
helper = osxkeychain helper = osxkeychain
``` ```
The `osxkeychain` works only on Mac and I use `/usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring` on Linux. The `osxkeychain` works only on Mac and I use `/usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring` on Linux.
For more: [refer](http://blog.iqandreas.com/git/storing-https-authentication-in-ubuntu-and-arch-linux/) For more: [refer](http://blog.iqandreas.com/git/storing-https-authentication-in-ubuntu-and-arch-linux/)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment