Skip to content

Instantly share code, notes, and snippets.

@brianjang
Last active January 22, 2016 14:40
Show Gist options
  • Save brianjang/458c787137367d04f17f to your computer and use it in GitHub Desktop.
Save brianjang/458c787137367d04f17f to your computer and use it in GitHub Desktop.
1. set-up user name and email
git config --global user.name "Firstname Lastname"
git config --global user.email "[email protected]"
git config --global color.ui auto
2. create ssh
$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/user_user_dir/.ssh/id_rsa): enter
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in id_rsa.
Your public key has been saved in id_rsa.pub.
The key fingerprint is:
created_fingerprint [email protected]
The key's randomart image is:
+--[ RSA 2048]----+
| .+==o=+|
3. register public key to github
$ cat ~/.ssh/id_rsa.pub
ssh-rsa print_your_public_key [email protected]
4. connect to github
$ ssh -T [email protected]
Hi yourname! You've successfully authenticated, but GitHub does not provide shell access.
5. see this reference site :
https://help.github.com/articles/generating-an-ssh-key/
6. create git ignore file
https://www.gitignore.io/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment