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 is not a Git configuration scope?
Local
System
User
Global
Directory
Next >
2/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 >
3/25
Which command is used to set up a new Git repository?
git install
git bash
git start
git init
Next >
4/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 >
5/25
How should you stage files for a commit?
git stage
git commit
git add
git reset
Next >
6/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 >
7/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 >
8/25
What are Git hooks?
Git server configurations
Scripts that run automatically before or after certain Git commands
Merge conflict resolution tools
Code formatting scripts
Git branch policies
Next >
9/25
What is the use of 'git blame' command?
To list all the contributors of a repository
To find the errors in a file
To display the commit history of a file
To revert changes in a file
To show what revision and author last modified each line of a file
Next >
10/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 >
11/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 >
12/25
What is the purpose of the 'git remote' command?
To clone a remote repository
To manage the set of repositories ('remotes') whose branches you track
To fetch updates from the remote repository
To track changes in remote branches
To push changes to the remote server
Next >
13/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 >
14/25
What is 'git diff' used for?
To display the current state of the repository
To list repository files
To show the difference in remote repositories
To merge changes
To show the changes between commits, commit and working tree, etc.
Next >
15/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 >
16/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 >
17/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 >
18/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 >
19/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 >
20/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 >
21/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 >
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
What limitation does Git LFS address?
Automating Git workflows
Managing remote repositories
Improving the speed of Git operations
Securing sensitive files in the repository
Handling large files that are difficult to manage with regular Git
Next >
24/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 >
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.