1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 08:16:02 +02:00

Add missing git shell example

This commit is contained in:
Andrea Cardaci 2020-10-03 12:12:30 +02:00
parent 87a0bb6a9f
commit a49cccf7da

View File

@ -6,6 +6,10 @@ functions:
code: |
git help config
!/bin/sh
- description: The help system can also be reached from any `git` command, e.g., `git branch`. This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
code: |
git branch --help config
!/bin/sh
- description: Git hooks are merely shell scripts and in the following example the hook associated to the `pre-commit` action is used. Any other hook will work, just make sure to be able perform the proper action to trigger it. An existing repository can also be used and moving into the directory works too, i.e., instead of using the `-C` option.
code: |
TF=$(mktemp -d)