Interview Prep/Git & GitHub/Conflicts, remotes, fetch, pull and push

What does "Your local changes would be overwritten by merge" mean?

IntermediateConceptConflicts, remotes, fetch, pull and push
Answer

The merge or checkout would change files that you have uncommitted edits in. Commit, stash, or discard them first. Git refuses rather than risk losing your work.

git stash push -m wip && git pull && git stash pop
All Git & GitHub questions Roadmap: Git & GitHub

More on Conflicts, remotes, fetch, pull and push