Version Control

This page will give an overview and some use cases of version control

Jonah Faas 2/17/2025

Version Control

Links

Overview

Git is a version control system that allows different people to work on different parts of a project at the same time without halting other ongoing development and then later on merge your changes with the main branch.

Use Cases

Initalize

git init

Clone

git clone origin (repository)

Add Files

git add (filename)(.)

Commit

git commit (-m "message")

Branch

git branch (branch-name)

Switch to Branch

git checkout/switch (branch-name)

Status Check

git status

Add Origin

git remote add origin (github-url)

Remove Origin

git remote remove (remote-name-most-likely-origin)

Pull

git pull origin (branch-name)

Push

git push origin (branch-name)

Merge Branches

git merge (branch-that-you-arent-on)