Skip to content

[Solved] Error – The following untracked working tree files would be overwritten by merge

So you just tried to do a git pull and got the following error:

error: The following untracked working tree files would be overwritten by merge:

How to fix Untracked Working Trees Overwritten Merge

You can fix this error by first adding and stashing your local files before performing the pull.

git add * git stash git pull
Code language: Bash (bash)

See also  How to add a Git Submodule to an existing codebase
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x