GIT
Git Cheat Sheet #
🔧 Configuration (One-time setup) #
git config user.name “Your Name”
git config user.email “you@example.com”
Set username and email for commits.
📁 Repository Setup #
git init
git init -b main
git remote add origin
Initialise a repository and connect it to a remote.
🔍 Status & Inspection #
git status
git log
git show
git diff
Check repository state, history, commit details, and differences.