Last active
August 29, 2015 13:56
-
-
Save Sciss/9159861 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Migrating from computer A to computer B, such that publishing to Sonatype works again: | |
1. on A: | |
$ gpg --export-secret-keys -a <key-id> > /Volumes/<USB>/temp.asc | |
$ cp ~/.sbt/0.13/credentials.sbt > /Volumes/<USB>/ | |
2. on B: | |
$ gpg --import /media/usb0/temp.asc | |
$ cp /media/usb0/credentials.sbt > ~/.sbt/0.13/ | |
Voila. | |
Then to push to GitHub without entering log/pass all the time: | |
$ ssh-keygen -t rsa -C "<my-email>" | |
$ xclip -sel clip < ~/.ssh/id_rsa.pub | |
In GitHub Account Settings, add a new key, paste from clip board. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment