git status taking too long

May affect interactivity of shell prompts (e.g. starship) that check git status.

To reduce prompt latency, disable checking untracked files in big repositories.

git config status.showUntrackedFiles no

git status during a interactive rebase

“Last commands done” is tail -n 2 of .git/rebase-merge-done, which is an append-only file during a rebase.

In case of a merge conflict, the last line of the “done” file is the commit applied that caused the conflict.