Browse the glossary using this index

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

.

.gitignore

A file that tells Git which files/folders to ignore and stop tracking.


B

Branch

A parallel version of the repository. Used to work on new features separately. Useful for experimentation and testing, as a sandbox.


C

cat

Not the GitHub cat, but a Git keyword, short for 'concatenate', useful to view the contents of a file that contains merge conflicts.


Clone

A local copy of a remote repository.


Commit

A saved snapshot of changes in the repository.


Conflict

Occurs when Git can't automatically merge changes. Manual intervention is required.


F

Fork

Creates a personal copy of someone else's repository on GitHub.

Git icon for fork:


G

git --version

Checks the installed version of Git.


git add

Add 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 branch

Lists branches; can also create or delete by specifying the argument.


git checkout -b

Creates and switches to a new branch.


git clone

Copies (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 config

Sets user details like name and email.


git diff

Shows differences between files or commits.


git init

Initializes a new Git repository in the current folder.


git log

Displays the commit history.


git merge

Merges another branch into the current branch.


git pull

Fetches and merges changes from the remote repository to local.


git push

Uploads committed changes to a remote (web-based) repository like GitHub.


git remote add origin

Links a local repository to a remote GitHub repository.


git status

Shows the current state of the working directory and staging area.


H

HEAD

The current commit your working directory is based on.


M

Merge

Combining changes from different branches.


O

Origin

The 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.md

A markdown file that introduces and explains a project. Often shown at the repository's homepage.


Remote Repository

The 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 Key

A secure method to authenticate your device to GitHub without entering username and password each time.


Staging Area

The area where changes are listed before they are committed. The "holding area".