Skip to content

Instantly share code, notes, and snippets.

@travisfont
Forked from liitfr/README.md
Last active May 28, 2024 17:42
Show Gist options
  • Save travisfont/39b3a43d283a793970c885e02448f08b to your computer and use it in GitHub Desktop.
Save travisfont/39b3a43d283a793970c885e02448f08b to your computer and use it in GitHub Desktop.
[how to revert 100644 → 100755 commits ?] #git #chmod

how to revert 100644 → 100755 commits

  • on your repo's root, run : find . -type f -print0 | xargs -0 chmod -x
  • commit this change on files : commit -n -m 'fix: files permission from 100755 to 100644'
  • then with vim .git/config, set filemode option to false
[core]
        filemode = false
@travisfont
Copy link
Author

travisfont commented May 28, 2024

Ref: https://www.multacom.com/faq/password_protection/file_permissions.htm

  • 777 all can read/write/execute (full access) [avoid]
  • 755 owner can read/write/execute, group/others can read/execute (recommended)
  • 644 owner can read/write, group/others can read only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment