On my team we like to put ticket numbers in commit messages, so that Jira finds them and puts links to the commits in the ticket. The problem is that I have a really hard time remembering my ticket numbers. What I've been doing is creating a branch for each ticket, but while that helps me remember the numbers, it still doesn't help me remember which ticket is which. I had tried posting comments to myself in Slack to keep track of them, but then it occurred to me that I didn't need to be using just the ticket number as the branch name, so now I'm trying something new.
Instead of creating branches with just the ticket number, I'm using ticket/short-description
. The length of the branch name doesn't affect much, thanks to tab completion, and having that information available at a glance right in the repo is huge, especially since I have the branch name as part of my prompt.
[me@my-machine:dir PROJ-1234/fix-ci ]$ git branch
PROJ-1234/fix-ci
PROJ-1233/remove-stupid-widgets
PROJ-1232/fix-brok