Search code examples
gitlaravel-5file-permissions

after git push not changing the permission of a directory?


I am also use the .gitignore to exclude it from the project but it will change the permission of a directory as /Public/example/

So how to ignore a file or directory from a git while pushing not changing the permission of a specific folder.

Thanks in advance!! In laravel 5


Solution

  • This will tell git to ignore permissions:

    git config core.filemode false
    

    http://www.ivankristianto.com/git-ignore-file-permission/