2

Recently I migrated from svn to git repo, Jenkins Build email after the git migration is too long somehow, and it seems including irrelevant items (not really changed, but somehow a lot of files are in the change list).

On investigating further I observe my git local repo show the files which are unchanged by a user.

If I check the git global repo, it has the correct number of files changed.
However, on the local repo I observe it was showing all the files which are irrelevant for the same user.

Hugo y
  • 1,421
  • 10
  • 20
gowthamanivel
  • 41
  • 1
  • 4

1 Answers1

1

Simply make sure on your local machine to type:

git config --global core.autocrlf false

Then try again and clone your repo.
See then if the number of changed file is still important: no more automatic eol conversion on checkout should help.

(Note: since Git 1.8.5, Aug 2013, git log is preferred to git whatchanged)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • one thing i forgot to mention that i use linux for build whereas certain people use windows if in that case also can i set core.autocrlf as false – gowthamanivel Oct 20 '16 at 06:58
  • @gowthamanivel Yes you can, yes you should. Always false. For files which need to be converted, use .gitattributes core.eol directive: http://stackoverflow.com/a/3209806/6309. – VonC Oct 20 '16 at 06:59