GIT INSTALL
-
Fork the project into your GitHub user account.
-
Sign in to GitHub.
-
Go to
https://github.com/usgs/earthquake-latest-earthquakes
. -
Click the Fork button near the top right of the page.
-
Make sure you Add an SSH Key to GitHub for the computer you're working on into your GitHub account, see below for specifics.
-
Clone from fork (update for your fork). Navigate to the HOME directory that you want to use for projects. Replace
[your username]
with your GitHub username.earthquake-latest-earthquakes``` ```cd earthquake-latest-earthquakes```
-
Add upstream remote for primary (use terminal)
git remote add upstream [email protected]:usgs/earthquake-latest-earthquakes.git
Check your remotes with
git remote -v
, it should look like thisorigin [email protected]:[your username]/earthquake-latest-earthquakes.git (fetch)
origin [email protected]:[your username]/earthquake-latest-earthquakes.git (push)
upstream [email protected]:usgs/earthquake-latest-earthquakes.git (fetch)
upstream [email protected]:usgs/earthquake-latest-earthquakes.git (push)
ssh-keygen -t rsa -b 2048
(in terminal)- Press Enter to accept the default save location.
- Enter a passphrase that you will remember.
cat ~/.ssh/id_rsa.pub
Copy the text block that is displayed. This is your SSH key. If you're on Window and can't copy the text from the terminal, go toC:\Users\[your username here]\.ssh
and open theid_rsa.pub
file with notepad.- In GitHub, click Edit Your Profile.
- Select SSH Keys on the left.
- Click Add SSH key. Give it a meaningful title.
- Copy your SSH Key into the Key, and click Add key.