Skip to content

Instantly share code, notes, and snippets.

@RobinDaugherty
Last active January 5, 2024 11:18
Show Gist options
  • Save RobinDaugherty/d2fcd97d5d1f4edb111f3b67befd67dd to your computer and use it in GitHub Desktop.
Save RobinDaugherty/d2fcd97d5d1f4edb111f3b67befd67dd to your computer and use it in GitHub Desktop.

Revisions

  1. RobinDaugherty renamed this gist Jan 5, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. RobinDaugherty created this gist Jan 5, 2024.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    for sha in $(git fsck --no-reflog | awk '/dangling commit/ {print $3}'); do
    if git show --name-only $sha | grep -q 'apollo-codegen'; then
    echo "Found in $sha";
    git log -n 1 $sha;
    fi
    done