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
- Install Git: Download and install Git.
- Create a new repository:
git init
. - Add and commit your changes:
git add <file>
,git commit -m "<commit message>"
. - 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
- Create a new branch:
git checkout -b new-branch
. - Make changes on the new branch.
- 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
- Fork the assignment repository:
git clone <repository-url>
,cd <repository-name>
,git remote add upstream <repository-url>
,git fetch upstream
,git checkout -b feature
. - Make changes and push to your fork:
git push origin feature
. - Create a pull request: Create a pull request on GitHub.
GitHub Classroom