NEW
Font size
S
M
L
XL
WorksheetsGit & Github
Total questions: 10
Worksheet time: 8mins
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.
Command to check the created, modified, deleted files in gitbash before Commit?
a)
git show
b)
git log
c)
git status
d)
all of the above
9.
Which command should you use to initialize a new git repository?
a)
Git bash
b)
Git install
c)
Git init
d)
Git start
10.
Which programming language was used to create Git?
a)
C
b)
HTML
c)
PHP
d)
C++
Reset
