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
Who is attributed with developing Git?
Junio C. Hamano
Linus Torvalds
James Gosling
Kohsuke Kawaguchi
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
Which command is used to set up a new Git repository?
git install
git bash
git start
git init
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
Which command is run to check the state of your local git repository since your last commit?
git check
git status
git commit
git diff
Next >
7/25
Which is the right way of passing a commit message in Git?
git message "Your commit message"
git add "Your commit message"
git commit -m "Your commit message"
git commit "Your commit message"
Next >
8/25
What should you run to modify your last commit?
git commit --amend
git change
git commit amend
git commit --change
Next >
9/25
What is a popular Git branching model used for collaboration?
Gitpush
Gitsync
Gitpull
Gitbranch
Gitflow
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 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
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 >
13/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 >
14/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 >
15/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 >
16/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 >
17/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 >
18/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 >
19/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 >
20/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 >
21/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 >
22/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 >
23/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 >
24/25
How can you protect branches in Git?
By setting branch protection rules in the repository settings
Through .gitignore files
Using the 'git protect' command
Branches cannot be protected in Git
By making branches read-only
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.