I just wanted to share a quick helper that I have been using for a while.
One of the projects I work at has some nicely set up development servers (different variations of cms and business api).
So whenever we need to test a specific configuration on a feature that we are developing, we will put that branch on one of the development servers. For that to happen we need to adapt the configuration inside of the build server and change the branch name.
So after multiple times of changing the branch name, waiting for the build to finish, testing on the server, not seeing my changes and finding out, that I had a typo in the name, I decided I'd hunt for a better solution.
This is the easy solution I found:
// windows git branch --show-current | clip
// macOS git branch --show-current | pbcopy
I hope ths makes your live easier and you can focus more of your time on the things you love to do.