ItSolutionStuff.com

Git Command to Ignore File Permission Changes

By Hardik Savani • November 5, 2023
Git

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....

Tags: Git
Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

How to Remove File from Git Commit Before Push?

Read Now →

How to Delete a Branch form GitHub Repository?

Read Now →

How to Rename Branch Name in Git Command?

Read Now →

How to Switch Branch using Git Command?

Read Now →

How to Create a New Branch on GitHub?

Read Now →

How to Clone Github Repository using Command Line?

Read Now →

How to Ignore Wildcard Files Name in Git using Gitignore?

Read Now →

How to Ignore Folder in Git using Gitignore?

Read Now →

How to Clone a Git Repository into a Specific Folder?

Read Now →

How to Clone Laravel Project from Github on Server?

Read Now →

How to Generate and Add SSH Key in Gitlab?

Read Now →

Git - How to Find a Deleted File in Commit History?

Read Now →

How to Git Force Pull from Remote Branch?

Read Now →

Git Remove Last Commit from Local Example

Read Now →