[Latest News][6]

B.Sc.CSIT
Blogs
Laravel
Learn
News
Rentonnepal
Technology
A Complete Online Magazine

AddThis

How to git ignore file permissions changes for commit?

When i was working on my PHP Laravel project and i clone project from git repository. I just composer install and then change storage folder permission. then i just run bellow command:

git status

I found list files of storage folder even i didn't changes on that file. I was thinking why there are several files on git status. But i understand this is because of permissions.

I search google and other, at last i found bellow command that way we can ignore or remove or undo file permissions changes from git status. So, you can run bellow command in your repo.

git config core.fileMode false

Try this...., It helps for me....

No comments:

Post a Comment

Start typing and press Enter to search