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
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 two configuration properties does the tool expect to be configured after installing Git and prior to issuing the first commit?
email address and password
username and password
username and IP address
username and email address
Next >
2/25
Which is not a Git configuration scope?
Local
System
User
Global
Directory
Next >
3/25
Who is attributed with developing Git?
Junio C. Hamano
Linus Torvalds
James Gosling
Kohsuke Kawaguchi
Next >
4/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 >
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
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 >
7/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 >
8/25
What is a shortcut to staging all the changes you have?
git commit add .
git add .
git commit .
git push -am "Message"
Next >
9/25
Which of the following is a valid Git merge strategy?
Fast-forward
Recursive
Direct-commit
Automatic
Merge-commit
Next >
10/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 >
11/25
What is 'git bisect' used for?
To find the commit that introduced a bug using binary search
To create a new commit
To list all branches
To merge two branches
To delete a branch
Next >
12/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 >
13/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 >
14/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 >
15/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 >
16/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 >
17/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 >
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 '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 >
21/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 >
22/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 >
23/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 >
24/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 >
25/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 >
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.