Home > OS >  Why nothing to commit after git add .?
Why nothing to commit after git add .?

Time:06-21

I'm completely confused as to why this procedure is not working and would very much appreciate some help. I'm confident this same procedure worked last week.

  1. git clone
  2. copy files from outside of the repo into the cloned repo (all of which have the same name as files already in the repo)
  3. 'git status' shows a whole bunch of modified files. Great
  4. 'git add .'
  5. 'git status' shows working directory clean, nothing to commit.

Why?

CodePudding user response:

Try first in your cloned repository git ls-files --eol (Git 2.8 (March 2016))

Try also the same clone after git config --global core.autocrlf false.

If this is eol (end-of-line) related, there should be no diff, and git status should be clean.

  •  Tags:  
  • git
  • Related