Note: Setup Git on Raspberry Pi
This is just a note to my self.
Install git on Raspberry Pi
Run commando in terminal
$ sudo apt-get install git
Generating a new SSH key and adding it to the ssh-agent
$ ssh-keygen -t rsa -b 4096 -C "email@example.com"
Adding your SSH key to the ssh-agent
$ eval "$(ssh-agent -s)" $ ssh-add ~/.ssh/id_rsa
Adding a new SSH key to your GitHub account
Copy the SSH key to your clipboard using xclip.
$ sudo apt-get install xclip
Copy key to clipboard
$ xclip -sel clip < ~/.ssh/id_rsa.pub
Log in to Github and add key. Follow steps on https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/#platform-linux