Git Command to Ignore File Permission Changes
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....
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to Remove File from Git Commit Before Push?
- How to Delete a Branch form GitHub Repository?
- How to Rename Branch Name in Git Command?
- How to Switch Branch using Git Command?
- How to Create a New Branch on GitHub?
- How to Clone Github Repository using Command Line?
- How to Ignore Wildcard Files Name in Git using Gitignore?
- How to Ignore Folder in Git using Gitignore?
- How to Clone a Git Repository into a Specific Folder?
- How to Clone Laravel Project from Github on Server?
- How to Generate and Add SSH Key in Gitlab?
- Git - How to Find a Deleted File in Commit History?
- How to Git Force Pull from Remote Branch?
- Git Remove Last Commit from Local Example