WorksheetsGit It Done
Total questions: 15
Worksheet time: 4mins
What is Git mainly used for?
Cloud storage
Version control system
Code compiler
Programming language
Which statement correctly describes GitHub?
A software installed on PC
A local version control tool
A cloud platform that hosts Git repositories
A programming IDE
Which of the following is a key difference between Git and GitHub?
Git works online, GitHub works offline
GitHub is a tool, Git is a website
Git works offline, GitHub requires internet
Both are the same
What is a repository in Git?
A Git command
A cloud server
A project folder tracked by Git
A programming file
Which Git command is used to create a new repository?
git start
git create
git init
git new
What does git status command do?
Pushes code to GitHub
Creates a commit
Checks current repository status
Clones a repository
Which command stages files before committing?
git commit
git push
git add
git pull
What does git commit -m do?
Uploads code to GitHub
Saves a snapshot of the code
Deletes files
Clones repository
Which command links a local repository to GitHub?
git push
git remote add origin
git branch
git pull
Why is git branch -M main used?
To delete a branch
To create a repository
To rename the current branch to main
To merge branches
Which command uploads code to GitHub?
git upload
git pull
git push
git add
Which file is used to ignore files in Git?
.env
ignore.txt
.gitignore
config.git
If a file was already committed, how do you remove it but keep it locally?
git delete file
git rm file
git rm --cached file
git remove local
Which command removes a file from the repository?
git remove
git rm filename
git delete filename
git clear
What is the purpose of a Pull Request?
To delete a repository
To download code
To request merging changes into main code
To clone a repository
