πΏ 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.
