What is Git and GitHub?

What is Git?

Git is a free and open-source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. A series of predefined commands are used to manage the history of code changes.

What is GitHub?

GitHub is a web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features.

Git and GitHub are Not the Same things

Git is independent of GitHub. You do not need a GitHub account to use Git. However, both are often used in conjunction. Git tracks code changes local to your computer. If you lose the folder where your code is stored, you will not be able to recover your code or the changes that Git tracked.
GitHub stores your code from a local Git repository remotely on their website. If you lose the local copy of your Git repository, GitHub will have your code saved. This is only available from the last time you pushed to your remote repository.
Rule of thumb: Commit your code frequently

Git and GitHub Knowledge Checklist

  • What is a repository?
  • What is a local repository?
  • What is a remote repository?
  • What is a commit?
  • What is a merge conflict?
  • What are the Four Areas of Git?
  • What is the Working Directory?
  • What is the Index(also known as a Staging area)
  • What is the Repository?
  • What is the Stash?
  • What is a branch?
  • What is a private repository?
  • What is a public repository?
  • What is rebase?

Where to practice Git skills?

GitHub Student Pack

Students who sign up for the pack receive GitHub Pro at no charge while they’re in school. A highlight of the pack is having access to creating unlimited public and private repositories. Students also get access to deep discounts from a number of GitHub partners.