0

What is wrong with my default settings on Linux?

rm -rf PATH
mkdir -p PATH
cd PATH

git clone GITPATH .
git status

It shows all of the recently downloaded files as modified. And I cannot pull later on.

# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)

#       modified:   readme.txt
#       modified:   todo.txt

Diff

git diff todo.txt

diff --git a/todo.txt b/todo.txt
old mode 100644
new mode 100755

How can I get rid of this unexpected annoying thing?

Andrew Aylett
  • 39,182
  • 5
  • 68
  • 95
Bimal Poudel
  • 1,214
  • 2
  • 18
  • 41

1 Answers1

0

you could use a filesystem that supports file permissions. also reading How do I make Git ignore file mode (chmod) changes? might help. btw this is certainly not the default for a proper linux installation.

git config core.fileMode false
Community
  • 1
  • 1
mnagel
  • 6,729
  • 4
  • 31
  • 66