I would like to see the status of the current directory. Because there are lots of changes in sub-directories, which I do not want to see, the following command doesn\'
You can use:
git status | grep -v /
to filter out any paths that contain a slash (/
) which means they are in subdirectories.
You will also lose the red/green coloring of the changed paths.
Update:
This solution does not display the files that are moved from or to the current directory because the source and destination of a move operation are displayed on the same line in the output. The files that were renamed in the current directory (without being moved between directories) are displayed though.