I am getting a very strange whitespace issue.
I am working with a local copy of a WordPress site with the .git repo in the wp-content/themes folder so all changes to any theme are tracked etc.
When I set up the repo it considered every file (apart from those in gitignore) as new files and I committed those as the 'initial commit'.
Firstly is that normal? To have to commit all the files when setting up a new repo? 2nd - and this is the strange behaviour.
when I go to stage these files I get some whitespace inserted after the first character on many of the files.
I am thinkng this si something to do with line endings. I have my global config set to autocrlf = true also I have tried
autocrlf = true
eol = native
In my local git config. .gitattributes is set to :
* text=auto
as advised by Force LF eol in git repo and working copy
Nothing is helping so far. I am working on a windows machine, but the files were tarred from a linux server and just untarred into the directory.