Skip to content

Instantly share code, notes, and snippets.

@cgkio
Created November 12, 2013 16:51
Show Gist options
  • Save cgkio/7434395 to your computer and use it in GitHub Desktop.
Save cgkio/7434395 to your computer and use it in GitHub Desktop.
Setting up Git on EC2 to pull from GitHub repo
# Install git
sudo apt-get install git-core
# Set name for git to use when you commit
git config --global user.name "Your Name Here"
# Set email for git to use when you commit
git config --global user.email "[email protected]"
# Generate SSH deploy keys by following the instructions at:
# https://help.github.com/articles/generating-ssh-keys#platform-linux
# Copy the output to GitHub's
cat ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment