git tips
目录
To list untracked files
1git ls-files --others --exclude-standardIf you need to pipe the output to xargs, it is wise to mind white spaces using
git ls-files -zandxargs -0:1git ls-files -z -o --exclude-standard | xargs -0 git addNice alias for adding untracked files:
1au = !git add $(git ls-files -o --exclude-standard)Delete untracked files:
1git clean -dfx