$ git config user.name "your-name"
$ git config user.email "your-email"
$ git reset --hard <commit number>
git remote add origin git@personal:jlant/<some-repo>.git
git remote add origin git@work:jlant-usgs/<some-repo>.git
git remote add origin git@work_gitlab:jlant/gagepy.git
$ touch readme.md
$ git init
$ git add .
$ git commit -am "first commit"
$ git remote add origin git@personal:githubPersonal/test-personal.git
$ git push origin master
- http://mherman.org/blog/2013/09/16/managing-multiple-github-accounts/#.V3LixsAwiUm
- https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
$ git clone git@work_gitlab:jlant/gagepy.git
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Generating public/private rsa key pair.
...
Enter passphrase
...
The key fingerprint is:
...
$ eval $(ssh-agent)
$ ssh-add ~/.ssh/id_rsa
$ clip < ~/.ssh/id_rsa.pub
Error message - "Agent admitted failure to sign using the key."
Re-do the following:
$ ssh-add ~/.ssh/id_rsa