You push and get: 'Updates were rejected because the remote contains work you do not have locally.' A teammate pushed while you were coding.
Pull (with rebase) first to integrate their work, then push.
Easy · 3 steps · +300 XP
This scenario walks through 3 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git pushgit pull --rebasegit pushPull, resolve any conflicts, push. Never force-push to shared branches.