mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Add missing git shell example
This commit is contained in:
parent
87a0bb6a9f
commit
a49cccf7da
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user