Skip to content

Instantly share code, notes, and snippets.

@kossoy
Created August 26, 2011 05:57
Show Gist options
  • Save kossoy/1172804 to your computer and use it in GitHub Desktop.
Save kossoy/1172804 to your computer and use it in GitHub Desktop.
SSH + git quick cheatsheet for Mac
cd ~/.ssh
ssh-keygen -t rsa -C "my.email@domain.com"
cat ~/.ssh/id_rsa.pub | pbcopy
# scp somewhere or paste to github keys
git config --global user.name "name"
git config --global user.email email@m.com
# may be proxy
# git config --global http.proxy=http://proxy:8080
ssh -T git@github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment