Git Glossary
Special | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ALL
. |
|---|
.gitignoreA file that tells Git which files/folders to ignore and stop tracking. | |
B |
|---|
BranchA parallel version of the repository. Used to work on new features separately. Useful for experimentation and testing, as a sandbox. | |
C |
|---|
catNot the GitHub cat, but a Git keyword, short for 'concatenate', useful to view the contents of a file that contains merge conflicts. | |
CloneA local copy of a remote repository. | |
CommitA saved snapshot of changes in the repository. | |
ConflictOccurs when Git can't automatically merge changes. Manual intervention is required. | |
F |
|---|
ForkCreates a personal copy of someone else's repository on GitHub. Git icon for fork: | ||
G |
|---|
git --versionChecks the installed version of Git. | |
git addAdd file(s) to the staging area for the next commit. | |
git add .The dot (.) refers to all, so in this case, the command adds all changed files to staging. | |
git branchLists branches; can also create or delete by specifying the argument. | |
git checkout -bCreates and switches to a new branch. | |
git cloneCopies (or clones) an existing Git repository from GitHub to your machine. | |
git commit -m "message"Records a snapshot of staged changes with a message. | |
git configSets user details like name and email. | |
git diffShows differences between files or commits. | |
git initInitializes a new Git repository in the current folder. | |
git logDisplays the commit history. | |
git mergeMerges another branch into the current branch. | |
git pullFetches and merges changes from the remote repository to local. | |
git pushUploads committed changes to a remote (web-based) repository like GitHub. | |
git remote add originLinks a local repository to a remote GitHub repository. | |
git statusShows the current state of the working directory and staging area. | |
H |
|---|
HEADThe current commit your working directory is based on. | |
M |
|---|
MergeCombining changes from different branches. | |
O |
|---|
OriginThe default name Git gives to the remote repository. | |
P |
|---|
Pull Request (PR)Proposes changes from one branch to be merged into another, often used in collaboration. | |
R |
|---|
README.mdA markdown file that introduces and explains a project. Often shown at the repository's homepage. | |
Remote RepositoryThe online (web-based) version of a repository (like on GitHub). | |
Repository (Repo)A project folder tracked by Git, either local or hosted online (e.g. on GitHub). | |
S |
|---|
SSH KeyA secure method to authenticate your device to GitHub without entering username and password each time. | |
Staging AreaThe area where changes are listed before they are committed. The "holding area". | |