Font size
S
M
L
XL
WorksheetsGit and Github
Total questions: 15
Worksheet time: 3mins
Name
Class
Date
1.
Which is Distributed version control system?
a)
cvs
b)
Perforce
c)
svn
d)
git
2.
Which Command is used to show limited number of commits?
a)
git fetch
b)
git log -n
c)
git config
d)
git status
3.
What command lets you create a connection between a local and remote repository?
a)
git remote add origin
b)
git remote add new
c)
git remote new origin
d)
git remote origin
4.
.......... is equivalent to fetch and merge
a)
pull
b)
syncronize
c)
push
d)
fetch
5.
Which of the following git command that downloads your repository from GitHub to your computer?
a)
git clone
b)
git commit
c)
git fork
d)
git push
6.
How do you supply a commit message to a commit?
a)
Git message "My first commit"
b)
Git add "My first commit"
c)
Git commit "My first commit"
d)
Git commit -m "I'm coding!"
7.
Which of the following commands is used in switching between branches?
a)
Git branch
b)
Git checkout
c)
Git switch
d)
Git merge
8.
Which command should you use to initialize a new git repository?
a)
Git bash
b)
Git install
c)
Git init
d)
Git start
9.
A local repository is..
a)
On your computer
b)
Online
10.
A remote repository is..
a)
On your computer
b)
Online
11.
Which command fetches and downloads content from a remote repository and immediately updates the local repository to match that content?
a)
push
b)
pull
c)
take
d)
commit
12.
How do you check the state of your local git repository since your last commit?
a)
git commit
b)
git status
c)
git check
d)
git diff
13.
3.Which of the following commands will stage your entire directory and every non-empty directory inside your current directory?
a)
git status all
b)
git add .
c)
git commit all
14.
What command lets you create a connection between a local and remote repository?
a)
git remote add origin
b)
git remote add new
c)
git remote new origin
d)
git remote origin
15.
Git command to compare two specified branches
a)
git diff
b)
git merge
c)
git blame -L
d)
git push --tags
Reset
