Git Flashcards

๐ŸŒฟ Git Flashcards
๐Ÿ”ง What is Git?
Git is a distributed version control system that tracks changes in source code during software development.

๐Ÿ“ฆ What is a Git Repository?
A Git repository stores all files, history, and changes tracked in a project. It can be local or remote.

๐Ÿ”„ What is Git Clone?
`git clone` creates a copy of a remote repository on your local machine.

๐Ÿ“ฅ What is Git Pull?
`git pull` fetches updates from the remote repository and merges them into your current branch.

๐Ÿ“ค What is Git Push?
`git push` uploads your local commits to a remote repository.

๐ŸŒฟ What is a Branch?
A branch in Git allows parallel development by creating isolated lines of work.

๐Ÿ”€ What is Git Merge?
`git merge` combines changes from one branch into another, usually main/master.

๐Ÿงช What is Git Commit?
`git commit` saves a snapshot of the changes staged in the index, creating a new revision.

๐Ÿ“‚ What is Git Staging Area?
The staging area holds changes before they’re committed. Use `git add` to stage files.

๐Ÿ•’ What is Git Log?
`git log` shows a history of commits for the repository with author, date, and messages.

โช What is Git Revert?
`git revert` creates a new commit that undoes the changes from a previous commit.

๐ŸŽฏ What is Git Checkout?
`git checkout` lets you switch branches or restore working tree files to a specific state.