Skip to content
UPEEC

Version Control with Git

Git records every change to your project so you can go back in time, work on features safely and collaborate.

Beginner
Comments 0

Git stores your project's history as a series of snapshots called commits. Platforms like GitHub and GitLab host Git repositories so teams can share work.

Core commands:

git init                 # start a repository
git add file.c           # stage a change
git commit -m "Add PWM"  # save a snapshot
git log                  # see history
git push                 # upload to GitHub

Use Git for firmware, PCB design files and documentation too — not just software.

Sub-topics (2)

Commits and History

A commit is a saved snapshot of your project with a message explaining what changed and why.

Beginner♥ 0🔖 0💬 0

Branching and Merging

Branches let you develop features in isolation; merging brings the changes back together.

Easy♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.