Skip to content
Discussion options

You must be logged in to vote

Git & GitHub Cheat Sheet

Remembering all Git commands can feel tricky at first - even seasoned developers forget them sometimes!
Here’s a handy, practical cheat sheet to make your life easier and help you quickly recall the most commonly used commands.

🔹 Basic Setup

git config --global user.name "Your Name"   # Set your name
git config --global user.email "[email protected]"   # Set your email
git config --global color.ui auto           # Makes git output colorful


## 🔹 Create & Initialize

git init         # Initialize a new repo
git clone URL    # Clone an existing repo from GitHub


## 🔹 Check Status & Changes

git status       # See current status of repo
git diff         # See changes…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sanjay-kv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants