here is "git status", with all its formatting glory: https://git.kernel.org/pub/scm/git/git.git/tree/git-status-s...
but yes, I would not call it "git was written in shell". But some of its significant pieces were.