Note, that there is -f / -force option in each example, this is because of default configuration of git: If the git configuration variable clean.requireForce is not set to false, git clean will refuse to run unless given -f or -n. If you want to remove ignored as well as non-ignored files, run git clean -f -x.If you just want to remove ignored files, run git clean -f -X.If you want to also remove directories, run git clean -f -d.If you just clean untracked files, run git clean -f. Be careful with this one, it deletes files permanently!Īlways add -n or -dry-run options to preview the damage you'll do! ( source) This is builtin command to cleanup the untracked files. OS X (using lldb with a breakpoint on lstat64):ġ: name = 'lstat64', locations = 1, resolved = 1, hit count = 103859ġ.1: where = libsystem_kernel.Do you have your git directory full of untracked files and it start to bothers you when you are picking the changes for commit? Well I have two tips for you! git clean I traced it down to on Linux we are only making ~700 lstat syscals but Tl dr Do you know why by default `git status` is trying to `lstat`Įvery file in the repo on OS X but not on Linux? And is that config Performance was an order of magnitude slower on OS X than on Linux. I'm working on a git repo for my company and noticed that `git status`
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |