Skip to content

2. Git & GitHub

Yaniv Carmel edited this page Apr 2, 2022 · 21 revisions

In this section, you'll install git, a software for version control (managing changes in software code). Then, you'll create a repository in GitHub, a git-based platform to store your project.


  1. Download & install git.

  1. Create a github.com user.
  2. As a student, you are entitled to GitHub pro. Go to your user's settings, upload the required documents and get it :)
  3. When collaborating, one member of the pair should create a new repository, named, for example, matam-hw1.
  4. That person should invite their partner to collaborate, by going to the repository's settings -> collaborators -> add people.
  5. In order to avoid making changes directly to your project's main branch (which could lead to mistakes, and is generally considered a bad practice), go to settings -> branches -> branch protection rules -> "add rule" -> "require a pull request before merging". Under "branch name pattern", put "main", and create the new rule.

  1. Let's make our first contribution to the project. For now, we'll work directly from the GitHub website. Download .gitignore and upload it to your repository (you can simply drag-and-drop it).

Clone this wiki locally