I often rebase the same branch from different machines, so its not immediately clear if the branch I'm working on has the latest change and I just haven't pushed, or if that latest change was made somewhere else and I just haven't pulled.
I have a git alias to show all the local branches with upstreams and committerdates.
branc = "!f() { git for-each-ref --sort=committerdate refs/heads/$@ --format='%(color:red)%(objectname:short=8)%(color:reset) %(color:yellow)%(refname:short)%(color:reset) %(color:cyan)%(upstream:strip=2)%(color:reset) %(color:green)%(upstream:track)%(color:reset) (%(color:yellow)%(committerdate:iso-strict)%(color:reset)/%(color:cyan)%(committerdate:iso-strict)%(color:reset))'; }; f"
produces lines like
cc15e795 10496-standardise-common origin/10496-standardise-common (2022-01-26T14:07:21+02:00/2022-01-26T14:07:21+02:00)
Q1: As you can see it's not using the upstream committerdate
Q2: iso-strict is the most compact to-the-sec date format, but is there a way to ditch the timezone?