Can use git clean
command.
It will cleaning working tree by recursively removeing files that are not under version control.
Here’s few useful options. Full optinos and description is in here. (Git documentation)
# see which files will be deleted. (Just show, not delete)
git clean -n
# clean force (--force)
git clean -f
# clean by interactively (--interactive)
git clean -i
'tools > git' 카테고리의 다른 글
Git: merge with specific branch (0) | 2018.06.25 |
---|---|
Remove big file history in git (0) | 2018.04.24 |
Git tracking file/direcotry 제거하기 (0) | 2018.03.19 |
Git branch, merge, checkout 명령어 모음 (0) | 2017.03.22 |
git commit시 vi 에러: there was a problem with the editor 'vi'. git (0) | 2017.03.18 |