WorksheetsOpen Source WorkShop 001 Quiz_02
Total questions: 10
Worksheet time: 5mins
Which command initializes a new Git repository in the current folder?
git start
git init
git create
git new
Which command shows the current state of your working directory and staging area?
git show
git status
git check
git inspect
Which command adds changes for a specific file to the staging area?
git add filename
git stage filename
git include filename
git push filename
How do you commit staged changes with a message?
git save “message”
git commit -m “message”
git note “message”
git log -m “message”
Which command clones a remote repository to your local machine?
git copy <url>
git pull <url>
git clone <url>
git fetch <url>
Which file tells Git which files or patterns to ignore?
.gitconfig
.gitignore
ignore.txt
gitignore.json
What does git push do?
Downloads changes from remote to local
Uploads local commits to a remote repository
Stages files for commit
Creates a new branch on local
Which command shows commit history?
git history
git log
git commits
git list
On GitHub, what is a “fork”?
A way to delete a repository
A copy of a repository under your account to work independently
A feature to rename branches
A command to stage changes
What does git pull do?
Uploads local commits to the remote repository
Downloads and merges changes from the remote into your current branch
Stages all files for commit
Creates a new local repository
