What is Git?

A brief overview of version control and how it relates to OpenCommit.

OpenCommit is a platform for hosting Git repositories. If you are new to development, here is the short version of what that means.

Git vs. OpenCommit#

It is important to understand the difference between the tool and the service:

  • Git is the software that runs on your computer. It tracks the history of your files, allows you to “undo” changes, and manage different versions of your work.
  • OpenCommit is the hosting service (the “Forge”). It provides a place to store your Git repositories online, collaborate with others via Pull Requests, track bugs via Issues, and automate tasks with Actions.

Analogy: Git is like your word processor; OpenCommit is like a collaborative cloud drive where you share your documents.

Core Concepts#

TermWhat it is
RepositoryYour project folder, containing all files and their full history.
CommitA “snapshot” of your project at a specific point in time.
BranchA parallel version of your project (useful for testing new features).
MainThe default, primary branch of your repository.
RemoteThe version of your project stored on OpenCommit.

The Basic Workflow#

Most work on OpenCommit follows this cycle:

  1. Clone: Download a repository to your computer.
  2. Edit: Make changes to your files locally.
  3. Commit: Save a “snapshot” of your changes with a descriptive message.
  4. Push: Upload your local commits to OpenCommit.
  5. Pull Request: Propose your changes to be merged into the main project.

Next Steps#

We recommend learning by doing. Follow our Quickstart to create your first repository and see these concepts in action.

For an in-depth Git education, we recommend the Pro Git Book.