Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Github "diff" log

>Solution :

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
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading