Even Better Git Log And Status Aliases

A month or so ago I posted a decent format for Git logs. Now I’m back with an even better one, and a format for the status command as well.

We all hate the default log’s waste of vertical screen real estate:

Screenshot_2016-09-04_23-26-47

I’ve wrote a line in my bash script I use to re-initialize Git configurations every week or so. I suggest doing it this way, because you can make bulk changes to your configuration without having to muck around in the .git folder amongst the objects containing your versioned source.

Run this, and voila:

Screenshot_2016-09-04_23-27-53

We see the abbreviated SHA hash for each commit, which commit is the remote and local HEAD, the date relative to the current date, and author for each commit. Not to mention: colours! (Woo hoo!)

You’re welcome.

Git Status

Screenshot_2016-09-04_23-42-47

This alias is entirely formatting for readability and doesn’t actually present the reader with any new information.

The staged or unstaged modifications, additions, and deletions should now be files marked with colour coded abbreviations, instead of being in separated lists.

Screenshot_2016-09-04_23-45-36

That concludes today’s Git lecture. đŸ™‚