Created
December 3, 2012 11:14
-
-
Save dearaujoj/4194257 to your computer and use it in GitHub Desktop.
git clean command
This file contains hidden or 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
remove files git clean -f | |
remove directories, run git clean -f -d. | |
remove ignored files, run git clean -f -X. | |
remove ignored as well as non-ignored files, run git clean -f -x. | |
Note the case difference on the X for the two latter commands. | |
Unless you specify -f and clean.requireForce is set to "true" (the default) in your configuration, nothing will actually happen, with a recent enough version of git. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment