Home > Enterprise >  All files are being changed in pull request, but there are just a few file changes
All files are being changed in pull request, but there are just a few file changes

Time:08-15

I tried to pushed some new code after I changed my terminal from powershell to zsh. I just changed 3 files but suddenly ALL files are "changed", but they are still the same..

According to the diff log in github they are being deleted and added again.

I would assume it is a whitespace configuration problem, maybe something with UTF and that kind of stuf, but I don't now how to fix it, I want my commit to only the files I changed not every file

Github "diff" log

CodePudding user response:

In your new zsh terminal, try and clone your repository again, after setting a global configuration regarding eol (end of lines, to avoid automatic transformation of all files):

git config --global core.autocrlf false
git clone -b yourPRBranch https://github.com/you/yourRepo
cd yourRepo
# report your work on those 3 files
git add .
git commit -m "Add 3 files modified"
git push
  •  Tags:  
  • git
  • Related