I am uploading my files to git repo with the permissions rwx on local system, But it is not showing the executable permission when I clone them from git repo to some other local system. Is there any way to fix this issue?
Asked
Active
Viewed 65 times
0
-
The question sounds incomplete. Did you really do `git add
` when the file was marked as x? Make sure that the file is attributed with `100755` when `git ls-tree @ – terrorrussia-keeps-killing Feb 23 '21 at 07:20` first. If it's not for whatever reason, try setting the flag in the index with `git update-index --chmod=+x `, and then commit (amend, rebase, whatever). Of course the target file system should support the x-flag. -
@Sak What is the umask on your other local system? (https://stackoverflow.com/a/23670805/6309) – VonC Feb 23 '21 at 07:38