Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Find the Closest Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
Number convertor
CSS Maker
CSS Maker
CSS Maker text shadow
CSS Maker Text Rotation
CSS Maker Out Line
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
MD5 Hash Generator
Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase
String to Uppercase
Word Count Calculator
Empty Lines Remover
HTML Tags Remover
Binary to Hex
Hex to Binary
Rot13 Transform on a String
String to Binary
Duplicate Lines Remover
Change theme
Dark
Light
System
Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
How To
How To NodeJs
How To Linux
How To AngularJs
How To PHP
How To HTML
How To CSS
How To Symfony
How To Git
How To Apache
How To JavaScript
How To Java
How To Vue.js
How To Python
Git Basics
1/25
Which is the following is the default text editor for the Bash shell with a Windows-based Git install?
Bash
Vim
Emacs
Notepad++
Nano
Next >
2/25
Which two configuration properties does the tool expect to be configured after installing Git and prior to issuing the first commit?
email address and password
username and password
username and IP address
username and email address
Next >
3/25
Who is attributed with developing Git?
Junio C. Hamano
Linus Torvalds
James Gosling
Kohsuke Kawaguchi
Next >
4/25
When should you use a single dash within a Git command, as opposed to a double dash?
When using a multi-character option
When referencing a git alias
When issuing git commands with multiple options
When using a single-character option
Next >
5/25
How can you create a branch and switch to it directly?
git checkout -b <branch-name>
git branch --switch <branch-name>
git branch --checkout <branch-name>
git checkout --create-branch <branch-name>
Next >
6/25
Which git command should you run to download your repository from GitHub to your computer?
git fork
git clone
git commit
git push
Next >
7/25
Which command is run to check the state of your local git repository since your last commit?
git check
git status
git commit
git diff
Next >
8/25
How should you stage files for a commit?
git stage
git commit
git add
git reset
Next >
9/25
What is a shortcut to staging all the changes you have?
git commit add .
git add .
git commit .
git push -am "Message"
Next >
10/25
What is the correct commit syntax for all changes with a message?
git commit -a "Your commit message"
git commit -am "Your commit message"
git message -am "Your commit message"
git add -a "Your commit message"
Next >
11/25
Which of the following is a valid Git merge strategy?
Fast-forward
Recursive
Direct-commit
Automatic
Merge-commit
Next >
12/25
What is 'git bisect' used for?
To find the commit that introduced a bug using binary search
To create a new commit
To list all branches
To merge two branches
To delete a branch
Next >
13/25
What are Git submodules?
Methods to synchronize branches
Tools to compress repository size
A way to include or link to other Git repositories within a parent repository
Features to enhance Git security
Scripts to automate Git commands
Next >
14/25
What does 'git rebase' do?
Clones a repository
Reapplies commits on top of another base tip
Merges two branches
Creates a new branch
Deletes a branch
Next >
15/25
What is a 'fork' in Git?
A personal copy of another user's repository
A branch in a repository
A merged branch
A committed change
A clone of a repository on the local machine
Next >
16/25
What does 'git log' show?
The list of branches
The remote repositories
The current state of the repository
The commit history of the repository
The changes in files
Next >
17/25
How are merge conflicts in Git resolved?
Automatically by Git
By creating a new branch
By manually editing the conflicting files and then committing the result
By deleting the conflicting files
By using the 'git conflict' command
Next >
18/25
What is the function of 'git clean'?
Commits changes
Removes untracked files from the working directory
Deletes a branch
Merges branches
Shows changes in files
Next >
19/25
What is Git LFS (Large File Storage) used for?
For storing configuration files
For archiving the repository
For handling large files in a Git repository
For cloning large repositories
For merging large branches
Next >
20/25
What is a key difference between 'git merge' and 'git rebase'?
There is no difference
Merge preserves history, whereas rebase rewrites it
Merge is faster than rebase
Merge deletes history, whereas rebase preserves it
Merge is used for public branches, rebase for private
Next >
21/25
In which scenario is 'git bisect' particularly useful?
To show a list of recent commits
To revert a commit
To quickly find the commit that introduced a bug
To merge feature branches
To clone a repository
Next >
22/25
What does 'git reset --hard' do?
Creates a backup of the current state
Merges the current branch with the master branch
Resets the working directory and index to the last commit, discarding all changes
Resets only the index but not the working directory
Resets only the working directory but not the index
Next >
23/25
What is a common cause of merge conflicts in Git?
Merging without pulling latest changes
Failure to commit before merging
Using different Git versions
Incorrect use of Git commands
Concurrent modifications in the same lines of a file in different branches
Next >
24/25
What is the use of the 'git status' command?
To show the latest commit
To display the repository history
To list all the branches
To display the state of the working directory and staging area
To check the connectivity to the remote repository
Next >
25/25
Why would you create aliases for Git commands?
To rename existing Git commands
To create new Git commands
For shortcut commands to save time on frequently used operations
To track changes in Git commands
For securing Git commands
Next >
To get the result of the quiz, please provide your email address (optional)..
Get Certificate
It seems you haven't answered any questions yet. Please provide your answers to proceed.