Today I learned you can show the git status for a specific directory simply by specifying it. e.g., for the current directory:

git status .

#git #dev #devTips

@aral so git status is the current dir and down and git status . doesn’t recurse down?
@shanselman @aral i think you want git log <dir> or git log . if in that dir already
@shanselman That’s the effect I’m seeing :)
@aral @shanselman hmm, I just checked that, and I see that it still shows me the same thing in case of using "git status" and "git status ."
However, when I do "git status <folder>" it is in fact showing changes from this folder only, ignoring changes from outside of it.
@shanselman "git status" is the entire repo you're in. If you're in the repo root, "git status ." does the same (root and down). But if you're in a subdir, "git status ." is just that subdir and down, not the entire repo. I use that a lot, quite helpful to focus on things.