When trying to update (pull) changes to my local git repository, I get the error that there are untracked files:
> git pull origin
Updating 556678a..e6eb9b0
error: The following untracked working tree files would be overwritten by merge:
templates/Sammel RKA Süddeutsche EM MU15 am 17.10.2015.doc
Please move or remove them before you can merge.
Aborting
I can confirm this using git status
:
> git status
On branch feature/KRAS-6
Your branch is behind 'origin/feature/KRAS-6' by 16 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Untracked files:
(use "git add <file>..." to include in what will be committed)
"templates/Sammel RKA Su\314\210ddeutsche EM MU15 am 17.10.2015.doc"
nothing added to commit but untracked files present (use "git add" to track)
Then I use git clean
to have a clean working directory:
> git clean -f -n
Would remove "templates/Sammel RKA Su\314\210ddeutsche EM MU15 am 17.10.2015.doc"
> git clean -f
Removing "templates/Sammel RKA Su\314\210ddeutsche EM MU15 am 17.10.2015.doc"
Having a look at git status
now, it shows that the file has been deleted (but this implies that it was tracked before?):
> git status
On branch feature/KRAS-6
Your branch is behind 'origin/feature/KRAS-6' by 16 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: "templates/Sammel RKA S\303\274ddeutsche EM MU15 am 17.10.2015.doc"
no changes added to commit (use "git add" and/or "git commit -a"
Any idea how to clean this mess up? Could it be related to the spaces or special chars in the filename?