command | purpose |
---|---|
git fetch | get the latest data from remote repo, but maintain working files |
git pull | combine fetch+merge |
git status | show what's changed locally |
git add . | stage files you wanna commit |
git commit -m "Your message" | saves a "snapshot" to your local repo |
git push -u origin main | uploads your local commits to the remote repo |