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
This will tell git to ignore permissions:
git config core.filemode false