Skip to content

Instantly share code, notes, and snippets.

@mrsombre
Last active September 11, 2018 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrsombre/7823080c2de0cea50856708371a1f551 to your computer and use it in GitHub Desktop.
Save mrsombre/7823080c2de0cea50856708371a1f551 to your computer and use it in GitHub Desktop.
GIT cheat-sheet

For example following command adds user execute permission to an arbitrary file:

git update-index --chmod=+x <file>
git ls-files --stage
git commit -m "Set exec"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment