Setting up Git

  • [Debian] Install:
sudo apt-get update
sudo apt-get install -y git
  • [RHEL/CENTOS] Install:
sudo yum update -y
sudo yum install -y git
  • Configure:
git config --global "YOUR NAME"
git config --global "YOUR EMAIL"
  • Generate SSH Keys:
ssh-keygen -t rsa -C YOUR_EMAIL@DOMAIN.COM
  • You’ll receive the following prompts:
    Enter file in which to save the key (/home/vagrant/.ssh/id_rsa): – Press Enter
    Enter passphrase (empty for no passphrase): – Enter Password
    Enter same passphrase again: – Confirm Password
  • You should receive the following confirmation:
Your identification has been saved in /home/vagrant/.ssh/id_rsa.
Your public key has been saved in /home/vagrant/.ssh/
  • Print out the Public SSH Key & copy it:
cat ~/.ssh/
  • Go to your Github Settings, click New SSH Key button, enter a Title and paste in the public SSH Key, then click Add SSH Key.
Posted in Git

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.