From a49cccf7da45f2da385750ac16e2afb055913278 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 3 Oct 2020 12:12:30 +0200 Subject: [PATCH] Add missing git shell example --- _gtfobins/git.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_gtfobins/git.md b/_gtfobins/git.md index d2b5551..2d23838 100644 --- a/_gtfobins/git.md +++ b/_gtfobins/git.md @@ -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)