Git Cheat Sheet
Git commands, workflow, branching strategies, and best practices.
1 PageBeginnerMay 14, 2026
Basic Commands
Essential everyday Git commands.
bash
git init # Init repogit clone <url> # Clone remotegit status # Working tree statusgit add . # Stage all changesgit commit -m "message" # Create commitgit push origin main # Push to remote
Branching
Create and manage branches.
bash
git branch feature/login # Create branchgit checkout feature/login # Switch branchgit checkout -b feature/x # Create & switchgit merge feature/login # Merge branchgit branch -d feature/login # Delete branch
Pro Tip
Write descriptive commit messages in the imperative mood: "Add feature" not "Added feature".
Was this cheat sheet helpful?
Explore Topics
Advertisement
Sri Hayavadhana Info-Tech
Professional Web Designing Services
- Responsive Websites
- E-commerce Solutions
- SEO Friendly Design
- Fast & Secure
- Support & Maintenance