Skip to main content

Exercise 1: Clone, commit, pull, push

Getting started

Step 1: Get yourself on Github! Go to https://github.com/ and make yourself an account, if you don't already have one.

Step 2: Click HERE and leave a comment on the issue (include your name so I know who you are, please). This is just so I know your Github username and I can add you as a collaborator. This is important - because even though you can see all the code right now, you won't be able to push any of your changes until you've been added.

Setting up the git user

Before we can start using git, we have to tell it our name and email address. Weirdly, this isn't actually related to your Github account - it's just an identifier that it will put next to your commits (you know, so your friends know who to blame when the project breaks!)

Cloning the project

First, we need to navigate to the folder we want to put the documents in. Open Git Bash. Let's put this thing in our Documents folder since that's easy. Type this and press enter:

cd Documents

Now you should be in the Documents folder - we're ready to to clone the project (this just means we will download a copy of it).

Making changes and committing them to local

Additional resources: