Students will be able to fork repositories and make pull requests.
The following commands configure Git to label and associate commits with your name and email.
$ git config --global user.name "YOUR NAME"
$ git config --global user.email "YOUR EMAIL"
The command git remote shows you the names of remotes you've added to your repo.
$ git remote
The command git remote -v shows you both the names and urls associated with a particular repo.
$ git remote -v
You can add a repo using the following command. origin is a conventional remote name.
$ git remote add <name> <url>
You rename a remote using rename.
$ git remote rename <oldName> <newName>
You can delete a remote using rm.
$ git remote rm <remote name>
- Go to a repository you want to make a copy of and click the fork button at the top. This will generate a copy of the repo in your GitHub profile.
- Use the green clone or download button to get a copy of your fork onto your computer. Any changes you make should be pushed to the fork.
A pull request is a request to merge the changes and commits in your fork to the main project repository. You
- Fork the Repo
- Clone your fork
- Change your fork
- Push your fork
- Submit a pull request
- Git Guide - Basic
- Markdown Cheatsheet - Basic
- GitHub Guides - Intermediate
- Git Bootcamp - Intermediate
- Git Branching - Advanced