Check whether you have Git installed. If you need it, then, download Git and install it.
GitHub is a host of Git repositories, both public and private. There are other hosts of Git repositories, including BitBucket by Atlassian.
There are many Git clients to use with your Git repository. GitHub provides a GUI client, which is what is used in this workshop. Download the GitHub Desktop App to follow along with the workshop.
- Create repository on the GitHub website. Relevant commands: git init
- Clone the repository on your computer. Relevant commands: git clone
- Add new files or edit existing files on the repo... relevant commands: git add and git status
- Commit files in staging area to repository... relevant commands git commit and git log
- View differences
- Resolving conflicts
- Ignoring files (E.g.: never commit compiled code to repository)... See ignoring files on GitHub Help
- Use branches
- Use small commits. If you are fixing two different bugs, use two different commits. Small commits are easier for everyone in the development team to understand.
- Commit often.
- Do not commit broken work. Test code before commit.
- Write meaningful commit messages
- Use branches.
- Use Pull requests to alert other developers you've completed some work and you want them to review it. See GitHub Help on Pull Requests