← Back to blog

Git's 'Local Changes Would Be Overwritten' Error Isn't What It Sounds Like

VS Code refused to let me switch branches after a GitHub merge. The uncommitted changes weren't the problem — my local main was just stale.

Written by Denys Dovzhenko
The VS Code checkout dialog next to git branch -vv output showing local main three commits behind