-
Notifications
You must be signed in to change notification settings - Fork 47
Getting your own fork of the ebook
##Step 0: Get a Github account
We want all collaborators to have a Github account so it's clear who made which changes. Go to github.com and create a Github account.
##Step 1: Install git
Git is a program that allows people to track changes to their projects and collaborate with others on projects hosted in places like Github. We are going to use the command-line version of git because we are advanced users.
Install command-line git by going to git-scm.com/book/en/v2/Getting-Started-Installing-Git. Look for your operating system and read carefully to find the right link to the installation package.
##Step 2: Fork the repository on Github
You're going to want your own copy of the ebook code so you can make improvements to it. To do this, you will "fork" the repository.
On github.com, find the CSLearning4U organization and the StudentCSP repository (hint: if you're reading this, you're already there). Make sure you are logged into your Github account, and press the "Fork" button in the upper right of the screen. A cute animation should appear, and you see a repository called yourusername/StudentCSP.
##Step 3: Clone the new forked repository to your local machine.
Now you want to grab a copy of that code that you just forked and pull it down to your laptop or desktop so you can work on it. To do this, you will "clone" the repository.
In the repository that you just forked (yourusername/StudentCSP), look for the green "Clone or download" button. Click on it, and then copy the URL that is in the box.
Next, open up the terminal. Then, type the following command and press enter, where the URL is the URL that you just copied.
$ git clone https://github.com/yourusername/StudentCSP.git
It will take a little while, but the whole ebook code and its history will be downloaded onto your machine into a folder called StudentCSP