1

I do a clone of my repo

git clone user@githost:repo    

I get master branch. Now I checkout a remote branch

git checkout branch_name

now my git status shows 150+ files modified, why?

Zoe
  • 27,060
  • 21
  • 118
  • 148
Narasimha
  • 41
  • 4
  • Can you show a snippet of the git status output? – BlackVegetable Apr 03 '15 at 16:29
  • 2
    related to difference in new lines? Checkout http://stackoverflow.com/questions/5009096/files-showing-as-modified-directly-after-git-clone – Jayan Apr 03 '15 at 16:30
  • `11:22 $ git st On branch branch_name Your branch is up-to-date with 'origin/branch_name'. Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: xxxxxxxxx/xxxxxxxxofile.xml modified: xxxxxxxxx/xxxxxxxxofile.xml/src/main/java/com/****.java` 150+ of these – Narasimha Apr 03 '15 at 16:32
  • most probably file permission/mode changes you can ignore that using git config core.fileMode false – wonde Apr 03 '15 at 16:54
  • Here is my git config `[core] autocrlf = false fileMode = false` I removed my directory and re-did steps 1 and 2 above, still see the files modified – Narasimha Apr 03 '15 at 16:58

0 Answers0