Git and GitHub Basics glossary
29 terms you will meet in the free Git and GitHub Basics course, each explained in one or two sentences.
.
- .gitignore
- A file listing patterns of files and folders that Git should not track.
B
- Branch
- A movable pointer to a commit that lets you develop a line of work independently.
C
- Clone
- To copy an entire remote repository, including its history, to your computer.
- Commit
- A saved snapshot of the staged changes, with an author, date, message and unique ID.
- Commit hash
- The unique hexadecimal ID of a commit, often shortened to its first seven characters.
F
- Fast-forward merge
- A merge where the target branch simply moves ahead to the other branch's commit because no divergent work exists.
- Fetch
- To download new commits from a remote without changing your local branches or files.
- Fork
- A personal copy of someone else's repository on GitHub, used to propose changes without write access.
G
- Git
- A free, distributed version control system that tracks snapshots of a project on your own computer.
- GitHub
- An online service that hosts Git repositories and adds collaboration features like pull requests and issues.
H
- HEAD
- Git's pointer to the commit you currently have checked out, usually via the current branch.
M
- Merge
- Combining the changes from one branch into another.
- Merge commit
- A commit with two parents that records the joining of two branches.
- Merge conflict
- A situation where two branches changed the same lines differently and Git needs a person to decide the result.
P
- Pull
- To fetch new commits from a remote and integrate them into the current branch.
- Pull request
- A GitHub request to merge changes from one branch into another, with discussion and review.
- Push
- To upload your local commits to a remote repository.
R
- README
- A file, usually README.md, that explains what a repository is and how to use it; GitHub shows it on the project page.
- Rebase
- Replaying commits on top of another base commit, producing a linear history with new commit IDs.
- Remote
- A named link to another copy of the repository, typically on GitHub; the default name is origin.
- Repository
- A project folder tracked by Git, including its full history stored in a hidden .git directory.
- Reset
- A command that moves the current branch to another commit, optionally changing the staging area and files.
- Revert
- A new commit that undoes the changes of an earlier commit without rewriting history.
S
- Staging area
- Also called the index: the set of changes selected to go into the next commit.
- Stash
- A temporary shelf for uncommitted changes, so you can switch tasks with a clean working directory.
T
- Tag
- A fixed, named pointer to a specific commit, typically used to mark a release like v1.2.0.
U
- Upstream
- The remote branch a local branch tracks for push and pull, or the original repository a fork was copied from.
V
- Version control
- A system that records changes to files over time so you can review history and restore earlier versions.
W
- Working directory
- The files you see and edit on disk, in their current state.
Put these terms to work
The Git and GitHub Basics course uses every one of these terms in short lessons with instant-feedback questions. It takes about 120 minutes and ends with a free certificate of completion.
Start the course Course overview