Git -> Quick Drill Sheet
Important concepts you understood: Working Directory 👉 Where you edit files Staging Area 👉 Temporary place before commit Commit 👉 Snapshot of project Local Repository 👉 Git history on your mach...

Source: DEV Community
Important concepts you understood: Working Directory 👉 Where you edit files Staging Area 👉 Temporary place before commit Commit 👉 Snapshot of project Local Repository 👉 Git history on your machine Remote Repository 👉 GitHub copy of your project Git Workflow (Most Important) : Always remember this pipeline. Working Directory ↓ git add ↓ Staging Area ↓ git commit ↓ Local Repository ↓ git push ↓ GitHub Faster shortcut (useful for single file edits) git commit -am "updating git_notes.txt" Reason: -a automatically stages modified files (not new files). Topic Key Command Repository files ls Create files echo "text" > file Read file cat file Check repo status / See modified, staged, and branch info git status Staging area git add file / git add . Undo staging git reset file add remote origin git remote add origin <repo-URL> Commit changes git commit -m "message" Push to GitHub git push -u origin main Pull from GitHub git pull origin main Merge repos with different histories git