Why is my entire index changing in my git project

I use GitLab for my project repository.
Since last week I have not completed my project, so I was only an encoder. Now, when I try to execute my project, it shows me that my entire file has made any changes.

So, I will try the git diff command: here I am attaching a screenshot of what result I got. Clearly, all index files have been changed.

I tried google to solve the problem, but I failed.
So finally, I have to get a solution. I do not want to transfer all files

enter image description here

+5
source share
1 answer

For file resolution mode , repeat your repo again after:

 git config --global core.filemode false 

Then from your new cloned repo make

 git --work-tree=/path/to/old/cloned/repo add . 

This will import your actual changes into the new cloned repo.


If you want to keep your current repo (with its changes), you can see the difference with git diff , as I mentioned in this answer .
Please note that with Git 2.9.1 you can change the file resolution with

 git add --chmod=-x . 
+2
source

Source: https://habr.com/ru/post/1261815/


All Articles