git pull
git pullgit pull origin mainWhat it does:
- Gets new commits from the remote (for example GitHub).
- Puts them in your folder. Your branch moves forward.
Run this before you push if others (or you on another computer) added commits. That way you don’t get “remote has changes” errors.