Skip to content

Instantly share code, notes, and snippets.

@piotrkubisa
Created January 18, 2019 11:38
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 piotrkubisa/f64d19d5f3871e7087f925e5e872e46f to your computer and use it in GitHub Desktop.
Save piotrkubisa/f64d19d5f3871e7087f925e5e872e46f to your computer and use it in GitHub Desktop.
A prompt check in the Makefile
clean:
git clean -ndX
bash -c "read -r -p \"Are you sure? [y/N]\" response; [[ \$$response =~ [yY] ]] && git clean -dXi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment