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
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
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 >
4/25
Which command is used to set up a new Git repository?
git install
git bash
git start
git init
Next >
5/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 >
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
What is a shortcut to staging all the changes you have?
git commit add .
git add .
git commit .
git push -am "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
Which option is used to stash your untracked files?
git stash -a
git stash -u
git stash -q
git stash -k
Next >
10/25
What is a popular Git branching model used for collaboration?
Gitpush
Gitsync
Gitpull
Gitbranch
Gitflow
Next >
11/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 >
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 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 does 'git log' show?
The list of branches
The remote repositories
The current state of the repository
The commit history of the repository
The changes in files
Next >
15/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 >
16/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 >
17/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 >
18/25
What does 'git add -i' enable?
Ignores files for tracking
Initializes a new repository
Adds a remote repository
Archives repository files
Interactive staging mode
Next >
19/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 >
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
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 >
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
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 >
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.