NEW
Font size
WorksheetsGit-it?
Total questions: 18
Worksheet time: 3mins
What is the command to get the installed version of Git?
gitVersion
git --version
git help version
git -v
Who is attributed with inventing Git?
Yukihiro Matsumoto
Brendan Eich
Linus Torvalds
Radia Perlman
Which command should you use to initialize a new Git repository?
git bash
git install
git init
git start
Which option should you use to set the default user name for every repository on your computer?
--global
No need to specify
--all
--A
What is the default text editor for the Bash shell with a Windows-based Git install?
Emacs
Vim
Notepad++
Bash
After you install Git and prior to issuing the first commit, which two configuration properties does the tool expect to be configured?
username and email address
username and password
email address and password
username and IP address
After you initialize a new Git repository and create a file named git-quiz.html, which of the following commands will not work if issued?
git add git-quiz.html
git status
git add .
git commit -m "git quiz web file added"
Which vendor acquired GitHub for $7.5 billion in June 2018?
Oracle
Microsoft
IBM
Git automatically adds new files to the repository and starts tracking them.
True
False
Git commit history is automatically deleted:
Every 2 weeks
Every year
Commit history is never automatically deleted
Every month
What is the command to commit with the message "New email":
git commit -m "New email"
git commit -log "New email"
git commit -mess "New email"
git commit message "New email"
What is the command to view the history of commits for the repository?
git history
git commits
git log
git --full-log
What is the command to create a new branch named "new-email"?
git newBranch "new-email"
git add branch "new-email"
git branch new "new-email"
git branch new-email
What is the command to move to the branch named "new-email"?
git branch -move new-email
git branch new-email
git checkout new-email
git checkout branch new-email
What is the option, when moving to a branch, to create the branch it if it does not exist?
-newbranch
-new
-b
-all
What is the command to merge the current branch with the branch "new-email"?
git commit -merge new-email
git add new-email
git merge new-email
What is the command to delete the branch "new-email"
git gone new-email
git delete new-email
git branch -d new-email
git delete branch new-email
Which file can you configure to ensure that certain file types are never committed to the local Git repository?
ignore.git
.gitignore
gitignore.txt
git.ignore
