Skip to content

Instantly share code, notes, and snippets.

@Sciss
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sciss/9159861 to your computer and use it in GitHub Desktop.
Save Sciss/9159861 to your computer and use it in GitHub Desktop.
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