8 cards71 people studying this

Git & GitHub Essentials

Version control fundamentals — branches, merges, rebases, and collaboration workflows.

Share on XWhatsApp
Study this deck for free

Free account includes unlimited cards, FSRS v6 scheduling, and AI card generation.
No credit card required.

Try it — tap the card
What is the difference between git merge and git rebase?
92% likely forgotten
Tap to see the answer
Merge creates a merge commit preserving branch history. Rebase replays commits on top of another branch for a linear history. Rebase rewrites commit hashes.
Tap to flip back
What does git stash do?
Last reviewed 12 days ago
Tap to see the answer
Temporarily saves uncommitted changes (both staged and unstaged) so you can switch branches. Restore with "git stash pop" or "git stash apply".
Tap to flip back
What is the difference between git reset and git revert?
87% likely forgotten
Tap to see the answer
git reset moves HEAD backward (can lose commits). git revert creates a new commit that undoes changes. Revert is safe for shared branches.
Tap to flip back
What is a pull request?
Fading — due 5 days ago
Tap to see the answer
A request to merge changes from one branch into another. Allows code review, discussion, and CI checks before merging. Central to collaborative Git workflows.
Tap to flip back
What is cherry-pick in Git?
79% likely forgotten
Tap to see the answer
Applies a specific commit from one branch to another without merging the entire branch. Useful for hotfixes. Usage: git cherry-pick <commit-hash>.
Tap to flip back
What are the three areas in Git?
Last reviewed 21 days ago
Tap to see the answer
Working directory (modified files), staging area/index (files marked for next commit), and repository (.git — committed history).
Tap to flip back
What does "HEAD" refer to in Git?
94% likely forgotten
Tap to see the answer
A pointer to the current commit/branch you're on. HEAD~1 means one commit before HEAD. Detached HEAD means you're not on a branch.
Tap to flip back
What is .gitignore?
Fading — due 9 days ago
Tap to see the answer
A file listing patterns of files/directories Git should not track. Common entries: node_modules/, .env, .DS_Store, *.log, dist/.
Tap to flip back
Create your own AI flashcards

Create your own AI flashcards in 30 seconds — free

Get started for free

Want to track your progress with spaced repetition?

Sign up free to save this deck

Made with Forgetless — the AI flashcard app

Create your own deck in 30 seconds. Powered by the same algorithm as Anki.

Start free