From time to time I have untracked files in my git repository and I'd like to delete them.
Is there an easy way to do so using git or bash or even another way?
From time to time I have untracked files in my git repository and I'd like to delete them.
Is there an easy way to do so using git or bash or even another way?
Use git clean
command.
git clean -f -d # will delete all untracked directories and files.