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

Pulling a new master ends with the following error:

$ git pull
error: The following untracked working tree files would be overwritten by merge:
        deps/googletest/CMakeLists.txt
        deps/libdwarf/CMakeLists.txt
        deps/llvm/CMakeLists.txt
Please move or remove them before you can merge.
Aborting

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (2 by maintainers)

Commits related to this issue

Most upvoted comments

git fetch --all git reset --hard origin/{{your branch name}}

This worked for me, May be helpful for other.

$ git add * $ git stash $ git pull origin master/{branch_name}

You will lose the local changes however.

git fetch --all git reset --hard origin/{{your branch name}}

This worked for me, May be helpful for other.

omgthank you

Even after performing the above steps my issue was not solved. So, unfortunately, I created a new folder and cloned.

git clone "_repo_path_"