Sven Brodersen
Sven Brodersen

Reputation: 87

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

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

Upvotes: 2

Views: 636

Answers (1)

VonC
VonC

Reputation: 1328602

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

Upvotes: 2

Related Questions