Reputation: 901
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.
Upvotes: 1
Views: 1519
Reputation: 3371
use this
git status -uno
which is equivalent to:
git status --untracked-files=no
It's a bit hidden in the manuals, but the manpage for status says "supports the same options as git-commit", so that's where you'd have to look.
Upvotes: 7
Reputation: 51988
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"
Upvotes: 3
Reputation: 208
@Usman Maqbool's answer will work for files that have never been committed yet, and are considered 'untracked' by Git. For files that have already been added to the repo, but you want to ignore local changes, you have 2 options, as discussed here.
I would recommend using the git update-index --skip-worktree [filename]
option, as that appears safer.
Upvotes: 2