What is the best practice for branching / commit messages when using JIRA issues with subtasks. I typically create a user story and break that story down into technical tasks. However, I was curious how commit messages / feature branching should work so the source tab links up correctly.
Currently I do a bunch of work which results in multiple commits in a feature branch. Once the feature is complete I squash the commits and ensure the commit message references the user story.
Just looking for some best practices...