Today now in this post i will show you How to git ignore file permissions changes for commit? When i was working on my new PHP Laravel project and i was clone my project from the git repository. I just need to composer install and then need to change storage folder permission. Then i was just run the bellow command:
Finally I was found the list files of storage folder even i didn’t changes on any file. So I was thinking that why there are the several files on my git status. Then i was understand that this is because of permissions.
So I search on google and other, at last i was found the bellow command on that way we can ignore or remove or undo the file permissions changes from the git status. So, we can run the bellow command in our repo.
git config core.fileMode false
Thanks for read. I hope it help you. For more you can follow us on facebook