gitgit-bashgit-status

Hide untracked and other files from terminal in git


we set up a git for magento site.

and we edited lot of files and now when I used command : git status

I can see as in below images. I want to hide these files from terminal, but I dint want to delete it.

Is there any way I can hide from terminal.

enter image description here

enter image description here


Solution

  • I'm not sure I understand what you want to do ?

    If you want to view the modifications in a specific subfolder :

    git status business/logic/
    

    If you want to hide the lines regarding app/code :

    git status | grep -v "app/code"