benjamin.althu.es
open source projects | blog

Improved git status output

Git
Shell

Feb. 14, 2016, 3:04 p.m.

The output of git status is pretty great. It shows if you are in sync
with the current tracked remote branch and the staged files for your
next commit. It's also is a big help if you are new to Git, since it
practically tells you what to do next and how to do it.

Here is an example of the output of git status in my dotfiles repository:

If you get used to working with git you want something a little less
verbose, so you try out git status --short and maybe even set it as
a git or shell command alias. The output is indeed short and also does a
better job in indicating if you have both staged and unstaged lines in a
single file.