---
title: Version Control Commands
description: A reference guide for Git commands including initializing repos, committing, and pushing changes.
author: Eliy Yang
published: 2026-02-20
---

# Version Control Commands

## File and Directory Commands
- `mkdir file_name` - This creates a folder for your file/project.
- `cd file_name` - This allows you to enter into that folder.
- `git init` - This will initialize a new repository for that folder you're in.

## Cloning a Repository
- `git clone {URL to repository}` - When cloning a repository you have to copy your HTTPS URL in github.

## Adding and Committing files
- `git add file_name` - This adds any changes you made to one file.
- `git add .` - This adds any changes you made to your files.
- `git commit -m "input a description of the changes"` - This will commit your changes and the description helps you to know what has been done.
- `git push` - This will push your changes to your repository
