Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created February 28, 2019 18:44
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 amalloy/563a1cf93cabb9b9827ee7f04f3e0465 to your computer and use it in GitHub Desktop.
Save amalloy/563a1cf93cabb9b9827ee7f04f3e0465 to your computer and use it in GitHub Desktop.
$ touch tmp
$ git hash-object tmp
e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
$ chmod +x tmp
$ git hash-object tmp
e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
$ git write-tree
604588fc13420eda6610863abeffec7cae956e0c
$ chmod -x tmp
$ git write-tree
604588fc13420eda6610863abeffec7cae956e0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment