Git - chaolunner/RaspberryPi GitHub Wiki

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Getting started with Git

  • Set user name and email :

    $ git config --global user.name "chaolun"

    $ git config --global user.email "[email protected]"

  • Create ssh key :

    $ ssh-keygen -t rsa -C "[email protected]"

  • Login Github and add ssh id_rsa.pub :

    Copy id_rsa.pub content to Settings -> SSH and GPG keys -> New SSH key

    Title can input an alias that is displayed on the GitHub by the SSH key

    https://github.com/chaolunner/RaspberryPi/wiki/images/ssh-key.png

  • Test ssh whether successful :

    $ ssh -T [email protected]

    The authenticity of host github.com (207.97.227.239) can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.

    Are you sure you want to continue connecting (yes/no)?

    $ yes

    If you see your user name behind Hi. It mean success!