Which Git command initializes a new, empty repository in the current directory?
Gitlabgitassociate Git Fundamentals Category
Question · Easy
Which command downloads a copy of an existing repository from a remote URL?
What does `git add <file>` do?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Which command creates a commit with the staged changes and a message in one step?
What is the difference between `git fetch` and `git pull`?
Question · Medium
Which command shows the working-tree changes that have NOT been staged?
Which command lists all branches including remote-tracking ones?
Gitlabgitassociate Branching Category
Which command creates a new branch named `feature` AND switches to it?
What is a fast-forward merge?
Which command merges branch `feature` into the current branch?
What is the difference between `git merge` and `git rebase`?
Which command replays the current branch's commits on top of `main`?
Which command applies a single commit from another branch to the current branch?
Which command undoes the most recent commit while keeping the changes staged for re-commit?
Gitlabgitassociate History Category
What does `git revert <hash>` do?
Which command shows the commit history of the current branch?
Which command saves uncommitted changes for later, leaving a clean working tree?
What does `git tag v1.0` create?
What is the purpose of a .gitignore file?
Which file lets you specify per-path attributes such as line endings, diff drivers, or merge strategies?
Question · Hard
Which command pushes the current branch to its tracked remote?
Gitlabgitassociate Remote Category
Which command lists all configured remotes for a repository?
Which auth method is recommended for pushing to GitLab without entering a password every time?
Which command changes the URL of the existing `origin` remote?
What is the difference between `git push --force` and `git push --force-with-lease`?
What is a GitLab project?
Gitlabgitassociate Gitlab Basics Category
What is a GitLab group?
What is a Merge Request (MR) in GitLab?
Which GitLab feature lets you protect a branch so only certain users can push or merge to it?
What is GitLab Flow?
Which file in a GitLab repository configures automatic CI/CD pipelines?
What is a GitLab issue?
Which GitLab feature groups issues and merge requests by upcoming work cycle (e.g., a release)?
Which Git command shows who last modified each line of a file?
Which command reverts a file in the working tree to the version in HEAD, discarding local changes?
What does `git status` display?
Which command renames the current branch from `oldname` to `newname`?
Which command deletes a local branch named `feature` even if it has unmerged commits?
Which command deletes the remote branch `feature` on the `origin` remote?
What is the index (or staging area) in Git?
Which command shows the changes introduced by a specific commit?
What does `git reflog` show?
What is a three-way merge?
When a merge conflict occurs, where does Git mark the conflicting regions in a file?
Which Git config setting determines the name of the default branch when running `git init`?
Which file or directory contains the entire local Git repository's data?
Which GitLab role (default) can push to non-protected branches and merge MRs?
Loading more…