This page lists the assignments available on GitHub Classroom. Students can find the assignments by visiting the respective repositories.

Assignment 1: Introduction to Git

In this assignment, students will learn the basics of Git, a distributed version control system. Learn more about Git.

  • Install Git on your local machine.
  • Create a new repository for your assignment.
  • Commit your changes and push them to the remote repository.

Instructions

  1. Install Git: Download and install Git.
  2. Create a new repository: git init.
  3. Add and commit your changes: git add <file>, git commit -m "<commit message>".
  4. Push to remote repository: git push origin main.

Assignment 2: Branching and Merging

In this assignment, students will learn how to work with branches and merge changes in Git.

  • Create a new branch for your work.
  • Make changes on the new branch.
  • Merge the changes back to the main branch.

Instructions

  1. Create a new branch: git checkout -b new-branch.
  2. Make changes on the new branch.
  3. Merge changes back to main: git checkout main, git merge new-branch.

Assignment 3: Pull Requests

In this assignment, students will learn how to create and manage pull requests on GitHub.

  • Fork the assignment repository.
  • Create a pull request to submit your work.

Instructions

  1. Fork the assignment repository: git clone <repository-url>, cd <repository-name>, git remote add upstream <repository-url>, git fetch upstream, git checkout -b feature.
  2. Make changes and push to your fork: git push origin feature.
  3. Create a pull request: Create a pull request on GitHub.

GitHub Classroom