Skip to content

Instantly share code, notes, and snippets.

@ciaranmccormick
Created February 27, 2018 20:02
Show Gist options
  • Save ciaranmccormick/7b219ed3e506df1fc7e0f8d1e72b1ac3 to your computer and use it in GitHub Desktop.
Save ciaranmccormick/7b219ed3e506df1fc7e0f8d1e72b1ac3 to your computer and use it in GitHub Desktop.
How to use git
# Get your public ssh key
# IF you cat remember your id_rsa.pub password then
ssh-keygen
# The hit enter until it's generate the key
# Print the public key on screen
cat ~/.ssh/id_rsa.pub
# add it to the github repository
# clone the repository
git clone url-of-repository
# Update the user.email and user.name of the local git
git config user.email="email@address.com"
git config user.name="first.last"
# You're done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment