Script Valley
Git and GitHub Complete Course: From Beginner to Advanced
Working with GitHub: Remotes, Push, Pull, and Collaboration/Assessment

Practice & Assessment

Test your understanding of Working with GitHub: Remotes, Push, Pull, and Collaboration

Multiple Choice Questions

5
1

What is the difference between git fetch and git pull?

2

What is a fork in GitHub?

3

Which remote name is used by convention to refer to the original repository when working with a fork?

4

What happens when you include 'Closes #42' in a pull request description on GitHub?

5

What is the purpose of the -u flag in 'git push -u origin main'?

Mini Project

1

Team Collaboration Simulation with Pull Requests

Create a GitHub repository for a sample team project (e.g., a recipe collection or a reading list). Invite a collaborator (or simulate with a second GitHub account). Set up branch protection on main requiring at least one review before merging. Create an issue template and a pull request template. One team member opens issues for three features. Each member works on feature branches, submits pull requests linked to issues, and reviews the other's PR before merging. The final repository should show at least four merged PRs with closed issues.

Medium