Git Status - How to exclude unwanted folder's content to be shown when I execute 'git status' command

Raj picture Raj · Jan 17, 2017 · Viewed 7.4k times · Source

I'm trying to avoid showing unwanted folder's content (ex:- .settings, .metadata etc ) when i execute 'git status' command. I modified .gitignore file after adding the folder names to it but still I'm getting all these files when I execute git status.

Please help me on this.

Answer

galva picture galva · Feb 27, 2019

You can just remove them with grep -v if you're only interested not seeing them.