sudo apt-get install xclip
Generate ssh key:
ssh-keygen -t rsa -b 4096 -C "[email protected]"In a step for the command above you will create a filename for your ssh key. I chose git.
Copy the contents of the file ~/.ssh/git.pub:
xclip -sel clip < ~/.ssh/git.pub
to your SSH keys in your GitHub account settings.
ssh -T [email protected]
git clone git://github.com/<username>/<your-repository>
git remote set-url origin [email protected]:<username>/<your-repository>.git
git add -A
git commit -am "my update msg"
git push