C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
Website Dev - Lesson 4: Git Workflow Quiz
Answer all questions to test your understanding
1
What is Git used for?
To host websites
To track changes in code and enable collaboration
To create databases
To design graphics
2
What command stages all changes for commit?
git commit
git add .
git push
git pull
3
What is the purpose of a Pull Request?
To delete a branch
To merge code changes and enable code review
To create a new repository
To push changes without review
4
Which workflow uses main, develop, feature, release, and hotfix branches?
GitHub Flow
Git Flow
GitLab Flow
Trunk-Based Development
5
What is a merge conflict?
When Git automatically merges changes
When changes in different branches conflict with each other
When a branch is deleted
When a repository is created
6
Which command creates a new branch and switches to it?
git branch new-branch
git checkout -b new-branch
git push new-branch
git clone new-branch
7
What should a good commit message include?
A descriptive summary of changes with type prefix (feat, fix, docs, etc.)
Just the word 'update'
A long essay about the changes
Only the bug number
8
What does the --force-with-lease flag do?
Deletes the repository
Safely forces a push if no one else has pushed
Creates a new branch
Merges without conflicts
Submit Quiz