---
title: Version Control
author: Brad Kuhnle
description: reference sheet for git commands
published: 2025-02-20
---
# version Control
## Basic commands

1. ### git init 

    - this command will initalize a repository in the corrent file directory.

2. ### git add file-name/.

    - add will stage the file specified.
    - if the . is used it will do all files in the repo.

3. ### git commit -m "insert txt here"

    - commit is used to save changes to the repos corrent brach.
    - -m adds a message to the commit.

4. ### git branch branch-name

    - branch will give you a list of all branches.
    - if you ad a branch name to the end it will change you to that branch.