I'm on local branch master without any staged/unstaged changes. I do git pull origin master
and pull some .svg font files from remote, added by other developer.
I write git status
and I get these .svg files as 'Changes not staged for commit'.
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: public/fonts/pdf/x.svg
# modified: public/fonts/pdf/y.svg
# modified: public/fonts/pdf/z.svg
# modified: public/fonts/pdf/a.svg
#
no changes added to commit (use "git add" and/or "git commit -a")
They weren't changed by me so I do git checkout --
:
M public/fonts/pdf/x.svg
M public/fonts/pdf/y.svg
M public/fonts/pdf/z.svg
M public/fonts/pdf/a.svg
then git status
and the files are still on the list.
I'd like to remove the files from the list and discard any changes because I didn't touch them.
Am I donig something wrong with git or is it possible that there's some background process that changes these files whenever they're reverted to their original state?
git diff
:
--- a/public/fonts/pdf/x.svg
+++ b/public/fonts/pdf/x.svg
@@ -1,1403 +1,1403 @@
It seems to be replacing a file with its copy and treating this as a change? I'm now Win8, the files were created on Linux and added to repository on Mac...
Branches:
checkout-hotfix
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
Gitignore in 'fonts' directory:
pdf
.gitignore
Gitignore in 'pdf' directory:
*