Git Glossary
- Branch
-
A branch is a parallel version of your repository. Used to develop features independently.
- Example
git branch {branch_name}
- Commit
- A snapshot of changes recorded in the repository.
- Example
git commit -m "message"
- Clone
-
A copy of a Git repository that lives on your local machine.
- Example
git clone {URL}
- Fork
-
A personal copy of someone else's repository, often used for
proposing changes.
- Example
You fork from other repo from GUI.
- Merge
-
The process of combining changes from different branches into
one.
- Example
git merge feature/login
- Pull Request (PR)
-
A request to merge your changes into another branch or
repository.
- Example
git pull origin main
- Remote
-
A version of your project hosted on the internet or network.
- Example
git remote -v
- Repository (Repo)
-
A project folder containing all files and the history of
changes.
- Example
git init
- Staging Area
-
A place to prepare and review changes before committing them.
- Example
git add {file_name}
- Tag
-
A marker used to label specific commits, often for releases.
- Example
git tag v1.0