Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cloning a repository

To clone a repository, you will first need to have your SSH keys set up.

After doing that, use your terminal to clone a repository:

$ git clone git@github.com:United-Ads-Ltd/some-repo-name.git

Its always good practice to have a special SSH key for your github. This can be achieved with a config like this:

$ cat ~/.ssh/config
Host github.com
    User git
    IdentityFile ~/.ssh/id_git
	IdentitiesOnly yes
$ cat ~/.ssh/id_git
-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----