git pull
or git push
.~/.ssh
folder, in which the SSH client stores its configuration files:~/.ssh
directory or there are no files in it, don’t worry: it means you haven’t created an SSH key pair yet. If that is the case, proceed to the next topic.~/.ssh
folder, I have an SSH key pair (id_rsa.pub
is the public key and id_rsa
is the private key) created a year ago (Jul 18 2018
).[email protected]
with your email address):id_rsa
).y
and press Enter.~/.ssh
.~/.ssh/id_rsa.pub
) file contents to the clipboard using the xclip command:yes
and press Enter. The SSH client adds GitHub to the list of trusted hosts:git clone
command passing the copied URL as argument.git clone
command passing the copied URL as argument:git clone
command, including the URL.git pull
and git push
. But existing local repositories, previously cloned with HTTPS, will continue to use HTTPS, unless we set them up to use SSH.git remote -v
once more to verify that the remote repository’s URL has changed: