1

I have created a Django project and now I want to pull it to my remote server.

What I did so far:

error: The following untracked working tree files would be overwritten by merge: xxxx Please move or remove them before you merge.

What should I do? I guess this occurs because the files have the same name, but it's ok. I want to pull the content from one to another.

Borybar
  • 481
  • 1
  • 4
  • 13

1 Answers1

0

If you want to keep them, as mentioned here:

git add .  (., not *)
git stash
git pull

But if you want a clean workspace: git clean -ndxf (remove -n when you are OK with the preview output listing what would be removed)

Only when you have a clean workspace will you be able to pull.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250