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
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 is not a Git configuration scope?
Local
System
User
Global
Directory
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
What file is used to instruct Git to ignore certain files?
ignore.git
gitignore.txt
.gitignore
git.ignore
Next >
5/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 >
6/25
How do you create a copy of a lab under your own GitHub account so that you can solve the lab?
Forking it via the GitHub interface.
git fork
git clone
git pull-request
Next >
7/25
How should you stage files for a commit?
git stage
git commit
git add
git reset
Next >
8/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 >
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 command is used to revert a commit by creating a new commit?
git undo
git back
git reset
git revert
git return
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 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 is a Pull Request in the context of Git?
A feature to request code reviews
A request to merge a branch into another branch, often used in collaborative projects
A command to pull the latest changes from a remote repository
A method to clone repositories
An action to push local changes to a remote repository
Next >
15/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 >
16/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 >
17/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 >
18/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 >
19/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 >
20/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 >
21/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 >
22/25
When is it recommended to use 'git stash'?
Before every commit
After every merge
To delete all changes in the working directory
When you need to switch branches and have uncommitted work that is not ready to commit
To create a new branch
Next >
23/25
How do you check the name of the current branch in Git?
Using the 'git status' command
Using the 'git branch' command
Checking the .git/HEAD file
Using the 'git current-branch' command
It is not possible to check
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.