Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Need to show DELETED file path in " git status "

Tags:

git

I am working with git and every time when i check for $ git status its shows

#        deleted:    application/abe/1/index (copy).tpl
#        deleted:    application/abe/2/index (copy).tpl
#        modified:   css/mobile.css
#        modified:   css/work.css

I just need to see only modified files..not deletes files. Is there any method for that?

like image 560
Vishnu Prasad Avatar asked Aug 20 '14 05:08

Vishnu Prasad


2 Answers

On windows, you may use git status | findstr -v deleted. Grep is not available on windows command line.

like image 23
Kodjo Tchioffo Avatar answered Oct 30 '22 22:10

Kodjo Tchioffo


You could use git status | grep modified, or git status | grep -v deleted. Git itself doesn't provide an option to hide deletions from the status output, since it's unlikely that someone would want to be unaware that their next commit will delete some files from the repository.

like image 50
Wyzard Avatar answered Oct 30 '22 21:10

Wyzard