Sitemap
AWS in Plain English

New AWS, Cloud, and DevOps content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Press enter or click to view image in full size

Git Commands Cheat Sheet: The Definitive Guide (2025 Edition)

3 min readJun 3, 2025

Master Version Control with These Must-Know Git Operations

Git is the backbone of modern software development. Whether you’re a beginner or need a quick refresher, this guide covers all essential Git commands with practical examples and pro tips.

🚀 Getting Started with Git

1. Initialize a Repository

git init                          # Initialize in current directory  
git init <project-name> # Create new project directory

2. Configure Git (One-Time Setup)

git config --global user.name "Your Name"  
git config --global user.email "your.email@example.com"
git config --global core.editor "code --wait" # VS Code as default editor

📂 Basic Workflow Commands

Stage Changes

git add file.txt                 # Stage single file  
git add . # Stage all changes
git add -p # Interactive staging (review changes)

Commit Changes

git commit -m "Descriptive message"     # Commit staged changes  
git commit -am "Quick commit" # Stage & commit

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

AWS in Plain English

Published in AWS in Plain English

New AWS, Cloud, and DevOps content every day. Follow to join our 3.5M+ monthly readers.

No responses yet

Write a response