Public Deck Preview

Git Essentials

Study the deck, open a game mode, or copy it into your own collection.

Cards

1. What is Git?
A distributed version control system
2. What does git init create?
A new Git repository
3. What does git clone do?
Creates a local copy of an existing repository
4. What does git status show?
The state of the working tree and staging area
5. What does git add do?
Stages content for the next commit
6. What does git commit do?
Records staged changes as a new commit
7. What does git diff show by default?
Unstaged changes in the working tree
8. What does git log show?
Commit history
9. What is a Git branch?
A movable name pointing to a commit
10. What does git switch <branch> do?
Switches the working tree to that branch
11. What does git merge do?
Integrates changes from another branch or commit
12. What is a merge conflict?
Changes Git cannot combine automatically
13. What does git fetch do?
Downloads refs and objects from a remote without merging them
14. What does git pull usually do?
Fetches from a remote and integrates into the current branch
15. What does git push do?
Updates a remote repository with local refs and objects