What does git init do?
It initializes a new Git repository in the current directory.
Define git clone.
It creates a local copy of a remote repository.
True or false: git add stages changes for commit.
TRUE
What is the purpose of git commit?
It saves the staged changes to the repository history.
Fill in the blank: git checkout allows you to switch to _______.
Another branch or commit
What does git status show?
It displays the state of the working directory and staging area.
What is the function of git pull?
It fetches changes from a remote repository and merges them.
True or false: git push uploads local commits to a remote repository.
TRUE
What does git branch do?
It lists, creates, or deletes branches in the repository.
Fill in the blank: git merge combines changes from _______.
One branch into another
What is git rebase used for?
It integrates changes from one branch into another by applying commits sequentially.
Define git stash.
It temporarily saves changes in the working directory without committing them.
What does git remote manage?
It manages the set of tracked repositories.
True or false: git fetch downloads changes but does not merge them.
TRUE
What is the purpose of git tag?
It marks specific points in the repository’s history as important.
Fill in the blank: git reset can be used to _______ changes.
Unstage or revert commits
What does git log display?
It shows the commit history for the current branch.
Define git diff.
It shows the differences between various commits or the working directory.
What is a git submodule?
A repository nested inside another Git repository.
True or false: git cherry-pick applies commits from one branch to another.
TRUE
Fill in the blank: git config is used to _______ Git settings.
Set user preferences and repository settings
What does git blame do?
It shows who last modified each line of a file.
Define git archive.
It creates a compressed archive of files from a repository.
What is git reflog?
It records updates to the tip of branches and allows recovery of lost commits.