logoalt Hacker News

fkyoureadthedoc06/24/20252 repliesview on HN

I only switch branches manually too, but I work in many repos and come back to stuff after days sometimes.


Replies

gcarvalho06/24/2025

Even if I know my current branch, having my prompt show me untracked/uncommitted/unpushed changes helps to identify if something didn’t work because I’m in a dirty state, or if something I ran (unexpectedly) caused a dirty state.

For example, I don’t expect running scripts/build.sh to modify tracked files in the repo. Seeing part of the prompt go from “” to “?2!3” (two untracked, three changed files) makes that glaringly obvious.

0points06/25/2025

"git status" is all you need then.

show 1 reply