Fork a project from GitHub.com and clone it locally.
Now you've made a project locally and pushed it to GitHub, but that's only half the fun. The other half is working with other people and projects.
When you fork a repository, you're creating a copy of it on your GitHub account. Your fork begins its life as a remote repository. Forks are used for creating your own version of a project or contributing back fixes or features to the original project.
Once a project is forked, you then clone (aka copy) it from GitHub to your computer to work on locally.
The project we'll work with is github.com/jlord/patchwork. Go to that site and click the fork button at the top right. Once the fork animation is complete, you've got a copy on your account. Copy your fork's HTTP URL on the right sidebar.
Now, in terminal, clone the repository onto your computer. It will create a new folder for the repository so no need to create one. But make sure you aren't cloning it inside of another Git repository folder! So, if you're still inside of the 'hello-world' repository you worked in on the earlier challenges, back out of that folder. You can leave the folder you're in (and be in the folder that it was inside of) by 'changing directory' with two dots:
$ cd ..
$ git clone <URLFROMGITHUB>
Go into the folder for the fork it created (in this case, named 'patchwork')
$ cd patchwork
Now you've got a copy of the repository on your computer and it is automatically connected to the remote repository (your forked copy) on your GitHub account.
But what if the original repository you forked from changes? You'll want to be able to pull in those changes too. So let's add another remote connection, this time to the original, github.com/jlord/patchwork, repository with its URL, found on the right hand side of the original on GitHub.
You can name this remote connection anything you want, but often people use 'upstream', let's use that for this.
$ git remote add upstream https://github.com/jlord/patchwork.git
git-it verify
git-it
$ git remote add <REMOTENAME> <URL>
$ git remote -v