Last active
June 18, 2018 07:30
-
-
Save matthiasbalke/ddb508b603df77a7e3f0197390b9db88 to your computer and use it in GitHub Desktop.
Set executable permissions using git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # set executable | |
| git update-index --chmod=+x myScript.sh | |
| # check permissions | |
| git ls-files -s myScript.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment