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