Skip to content

Instantly share code, notes, and snippets.

@jaccus
Created April 5, 2016 13:26
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 jaccus/4b15372ad5d4e0477b1fcf9af34c8383 to your computer and use it in GitHub Desktop.
Save jaccus/4b15372ad5d4e0477b1fcf9af34c8383 to your computer and use it in GitHub Desktop.
Alias for git clean -xdf of all Git repositories in current directory
alias cleanall='for repoDir in `find . -name ".git"`; do git --git-dir=$repoDir --work-tree=$repoDir/.. clean -xdf; done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment