Last active
April 20, 2017 04:58
-
-
Save ricalo/dea79f9553c1d348c37ec4e927e26d7e to your computer and use it in GitHub Desktop.
Update file permissions in Git. Useful when you have to upload scripts to your CI/CD
This file contains 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
// source: http://stackoverflow.com/questions/10516201/updating-file-permissions-only-in-git | |
git ls-tree HEAD | |
git update-index --chmod=+x script.sh | |
git commit | |
git checkout script.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment