Skip to content

Instantly share code, notes, and snippets.

@matthiasbalke
Last active June 18, 2018 07:30
Show Gist options
  • Select an option

  • Save matthiasbalke/ddb508b603df77a7e3f0197390b9db88 to your computer and use it in GitHub Desktop.

Select an option

Save matthiasbalke/ddb508b603df77a7e3f0197390b9db88 to your computer and use it in GitHub Desktop.
Set executable permissions using git
#!/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