5 ms·
This. The one time a month when I can't remember which git branch I'm on I'll just run 'git branch'. If you're feeling frisky, you could even alias that to 'gb'
by queuebert 5y ago
This. The one time a month when I can't remember which git branch I'm on I'll just run 'git branch'. If you're feeling frisky, you could even alias that to 'gb'.
- rmetzler 5y agoOne time a month? Currently I have 85 work related repositories checked out, putting the current git branch and current Kubernetes context in the prompt is helping to avoid mistakes. I also have a newline in my prompt which makes it easier to copy commands and output into Jira.
- ec109685 5y ago85 repos seems like so many. Are you making many changes that need to span across multiple? How many are touched over the course of a week?
- cbsmith 5y agoI'm guessing this place is not using mono-repo. ;-)
- renox 5y agoI don't have 85 repo but 5 worktree were enough to make me do some errors, so I print the 'environment' configured and the current path but that wasn't enough so now I 'invert' the colors if the current directory doesn't match the environement variables --> no more errors
- brobinson 5y ago>you could even alias that to 'gb'. oh-my-zsh does this by default as it comes with the "git" plugin loaded. "gb -vv" is a common thing I run.