The following is the requirement:
Create a file test.sql , set the permissions to –rwxr-xr-- i.e here the owner and groups has executable. Let's say the file is pushed to source control
When I want to download the file back from source control the permissions should be retained as it is - –rwxr-xr--.
With Git when I pull the file from repository I see the permissions –rwxr-xr-x i.e the others have executable permissions which I wouldn't require.
The permissions should also be retained in development.
Could you please let me know how to retain the permissions when archiving.
I saw several answers in the forum but I couldn't get which one should be implemented,
git hooks? scripts?