Skip to content

Instantly share code, notes, and snippets.

@pearswj
Last active January 21, 2021 13:01
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 pearswj/a2df4f63b599324a89e984f7150a81ab to your computer and use it in GitHub Desktop.
Save pearswj/a2df4f63b599324a89e984f7150a81ab to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
for dir in pull_request2_*
do
echo -e "\n----> Cleaning $dir\n"
pushd $dir
# remove all untracked files
git clean -xdff
git submodule foreach --recursive git clean -xdf
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment