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
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 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 of the following must be present and configured on your local OS before Git installation?
Java Development Kit 1.8 or newer
Apache Maven
Jakarta Enterprise Edition web profile compliant server
Nothing
Next >
3/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 >
4/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 >
5/25
Which command is used to set up a new Git repository?
git install
git bash
git start
git init
Next >
6/25
Which command is the opposite of git clone, that uploads your changes and code back to GitHub instead of downloading your code from GitHub?
git push
git upload
git add
git status
Next >
7/25
How should you stage files for a commit?
git stage
git commit
git add
git reset
Next >
8/25
What is a shortcut to staging all the changes you have?
git commit add .
git add .
git commit .
git push -am "Message"
Next >
9/25
Which option is used to stash your untracked files?
git stash -a
git stash -u
git stash -q
git stash -k
Next >
10/25
Which of the following is a valid Git merge strategy?
Fast-forward
Recursive
Direct-commit
Automatic
Merge-commit
Next >
11/25
What is a popular Git branching model used for collaboration?
Gitpush
Gitsync
Gitpull
Gitbranch
Gitflow
Next >
12/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 >
13/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 >
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 purpose of the 'git show' command?
Deletes a commit
Shows the current branch
Merges branches
Initializes a new repository
Shows various types of objects
Next >
16/25
What is 'git reflog' used for?
To manage a log of where your HEAD and branch references have been
To display the remote repository logs
To clear the commit history
To show the commit logs
To log out of the current Git session
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 'tracking branch' in Git?
A branch that contains all the commits
A branch that automatically merges changes
A local branch that is always up to date
A branch used for staging changes
A branch that tracks changes from a remote branch
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
How do you change the URL of a remote repository in Git?
It cannot be changed once set
Using the 'git remote set-url' command
Using the 'git config set-remote' command
Modifying the .git/config file
Using the 'git remote change-url' command
Next >
24/25
Why is the initial commit important in Git?
It defines the project's collaborators
It determines the project's main language
It is not different from other commits
It sets the remote repository URL
It marks the starting point of the project's history
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.