Version Control Commands
A reference guide for Git commands including initializing repos, committing, and pushing changes.
Eliy Yang Thu Feb 19 2026 18:00:00 GMT-0600 (Central Standard Time)
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