sudo apt-get install xclip
Generate ssh key:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
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 git@github.com
git clone git://github.com/<username>/<your-repository>
git remote set-url origin git@github.com:<username>/<your-repository>.git
git add -A
git commit -am "my update msg"
git push