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