Git:- Show untracked files

Background

Here I am after a good weekend of labor, I will like to make sure that added files are stored away in our source control.

 

Git

Git Status

When one issues “git status“, it shows untracked files and directories.

Git Status -u

To show only untracked files, please append the -u option.


git status -u

 

Git Status -u ( SQL files only – Using find command )

To show only untracked “SQL” files, please append the -u option.

And, pipe the output of the git command to the find command.


git status -u | find "sql"


Git Status -u ( SQL files only – Using findstr command )

One can also substitute the findstr for the find command.


git status -u | findstr "sql"


			

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s