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
JTW Decoder
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
EN
DE
RU
FR
ES
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 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 >
2/25
After initializing a new Git repository and creating a file named git_file.html, which of the following commands will not work if issued?
git add git_file.html
git commit -m "Your commit message"
git status
git add .
Next >
3/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 >
4/25
How should you save the current state of your code into Git?
By adding all changes and staging them with git add
By adding all changes and staging them with git stage
By committing the staged changes with git commit
By creating a new commit with git init
Next >
5/25
What is a shortcut to staging all the changes you have?
git commit add .
git add .
git commit .
git push -am "Message"
Next >
6/25
Which option is used to stash your untracked files?
git stash -a
git stash -u
git stash -q
git stash -k
Next >
7/25
Which of the following is a valid Git merge strategy?
Fast-forward
Recursive
Direct-commit
Automatic
Merge-commit
Next >
8/25
What does 'git stash' do?
Commits changes to the repository
Temporarily stores modified, tracked files in order to change branches
Creates a new branch
Permanently deletes files from a branch
Merges changes from different branches
Next >
9/25
What is the purpose of 'git cherry-pick'?
To list commits in a branch
To merge branches
To delete specific commits
To create new branches
To apply the changes introduced by some existing commits
Next >
10/25
How does the '.gitignore' file work?
Automatically deletes specified files
Lists all ignored files
Merges specified files
Tracks specified files
Specifies intentionally untracked files to ignore
Next >
11/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 >
12/25
What does 'squashing' in Git mean?
Renaming branches
Deleting unwanted commits
Creating new branches
Cloning repositories
Combining several commits into a single commit
Next >
13/25
What is a 'git alias'?
A clone of a repository
A merged commit
A new Git branch
A tag in Git
A shorthand or nickname for a Git command
Next >
14/25
What is the purpose of the 'git branch -d' command?
To delete a branch
To rename a branch
To merge a branch
To list all branches
To create a new branch
Next >
15/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 >
16/25
What does 'git add -i' enable?
Ignores files for tracking
Initializes a new repository
Adds a remote repository
Archives repository files
Interactive staging mode
Next >
17/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 >
18/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 >
19/25
What is the purpose of 'git tag'?
To track remote branches
To delete branches
To merge branches
To mark specific points in history as important, typically for version releases
To create new branches
Next >
20/25
What is a best practice for collaborating with others in Git?
Avoid using tags for versioning
Commit changes directly to the master branch
Use a single branch for all developments
Never merge branches
Regularly pull changes from the remote repository to stay updated
Next >
21/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 >
22/25
What is the 'feature branch' workflow in Git?
Using tags for each new feature
Merging features directly into the master branch
Using a single branch for all features
Creating branches for each new feature being developed
Never merging feature branches
Next >
23/25
What does 'git clone' do?
Merges two repositories
Creates a new branch
Updates an existing repository
Deletes a repository
Creates a copy of an existing Git repository into a new directory
Next >
24/25
What is the effect of the 'git merge --no-ff' command?
Disables the merge operation
Forces a fast-forward merge
Creates a merge commit even if a fast-forward merge is possible
Rebases instead of merging
Merges without checking for conflicts
Next >
25/25
What is a 'detached HEAD' state in Git?
When the HEAD is missing from the repository
When HEAD points directly to a commit rather than a branch
A broken state that needs immediate fixing
A state where HEAD points to multiple branches
A special mode for merging
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.