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
Who is attributed with developing Git?
Junio C. Hamano
Linus Torvalds
James Gosling
Kohsuke Kawaguchi
Next >
2/25
Which command is used to set up a new Git repository?
git install
git bash
git start
git init
Next >
3/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 >
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
What is a shortcut to staging all the changes you have?
git commit add .
git add .
git commit .
git push -am "Message"
Next >
7/25
Which option is used to stash your untracked files?
git stash -a
git stash -u
git stash -q
git stash -k
Next >
8/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 >
9/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 >
10/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 >
11/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 >
12/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 >
13/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 >
14/25
What does the 'git archive' command do?
Creates an archive of the files from the named tree
Merges two branches
Shows the commit history
Initializes a new repository
Clones a repository
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 fetch' do?
Shows the status of the repository
Deletes untracked files
Stages files for commit
Merges changes from a branch
Downloads objects and refs from another repository
Next >
17/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 >
18/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 >
19/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 >
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 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 >
22/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 >
23/25
What does 'git commit --amend' do?
Splits the last commit into multiple commits
Deletes the last commit
Reverts the last commit
Creates a new commit as a copy of the last one
Modifies the most recent commit
Next >
24/25
What additional information can 'git blame' show besides authorship?
The commit each line of a file was last modified in
The entire commit history of the file
The size of each change in the file
The number of times the file was modified
Future planned modifications
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.