All of the following commands (below) that start with $
should be copied and pasted in your terminal / command prompt (also referred to as the “command line”)
DO NOT include the ‘$’ when copying and pasting the commands below; ‘$’ is a universal symbol for the terminal / command line
Press the enter / return key on your keyboard after pasting the command
Git is a tool used to track the state of your code over time. GitHub is a company that has made a business on top of the Git technology. We will be using both Git and GitHub in this class to distribute code, submit assignments and offer feedback.
Git can be installed by running the following command:
$ sudo apt-get install build-essential git-core curl
Copy and paste the following two commands (separately) into your Terminal. Replace the name and email address values with your own
$ git config --global user.name "Steve Jobs"
$ git config --global user.email "steve@apple.com"
Follow these instructions to create a new SSH Key (a special, very secure, key which allows your laptop access to your github account without having to remember your github password)
Add your new SSH Key to GitHub following these instructions
Verify your key works by running the following:
$ ssh git@github.com
You should see output similar to:
Hi <you>! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
$ apt-get install --yes build-essential