Created
April 5, 2016 13:26
-
-
Save jaccus/4b15372ad5d4e0477b1fcf9af34c8383 to your computer and use it in GitHub Desktop.
Alias for git clean -xdf of all Git repositories in current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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