Install Git and Use Bash
So far, all of our files are on Github.com. We're going to be copying files from there onto our computer so that we can make changes to them. We'll use Git, which keeps track of changes in files, and Bash, which allows us to issue commands. With these tools we can tell our computer, Git and GitHub what to do with the files.
A few of the steps may require your computer's password if one is set
- Visit git-scm.com and download the latest version for your operating system.
- In Mac, you won't notice anything or see the application installed, but it will install on your computer.
- In Windows, hit
Nextfor all options, then finish (you don't have to review notes).
In Mac you've already got Bash. If you go to your
Launchpad and search for
Terminal, this is the application you'll use.
In Windows you got Bash when you installed Git. Go to
Git and select
We'll refer to both Mac's Terminal and Window's Git Bash as just Bash.
Let's check our Git. In the Bash window type:
You should have been returned a line with the version number, this means that git was correctly installed and is up and running!
We need to tell Git who we are so that when we move files around it knows who is moving them. Type the following lines one at a time into Bash and inside of the quotations add the email you signed up to GitHub with and your GitHub username.
git config --global user.email "yourGitHub@email.com" git config --global user.name "yourGitHubusername"