Having a clear visual indicator of the current GIT branch I am working on is important to me, and I prefer to have it set up in my IDE (VIM) or sometimes even VSCode. I find this feature so useful that I wish it could also be displayed in my local development build.
Currently, I manually update a label to reflect the branch I am working on every time I switch branches. However, I often forget to do this and end up confusing myself.
I'm curious if there is a way to automatically pull this information from GIT and display it in my user interface just like VSCode does.
While I am using Vue 3 and Typescript, I believe the approach would be similar regardless of the specific technologies being used.
If anyone has any idea how to achieve this, I would appreciate your insights!