๐ฟ 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.