Like in Visual Studio, I would like if possible to relate my commits to bugs, tasks, etc. In Visual Studio is as easy as Add Work Item by ID from the Related Work Items section.
I'm going to assume you're asking about Sourcetree, or at least about committing to a git repository like Bitbucket.
If you've got Bitbucket (or Github) connected to Jira, all you need to do is mention the Jira key (e.g. ABC-123) in your commit message and the rest will be taken care of for you by the Jira integration. It doesn't matter if you're using Sourcetree, Github Desktop, or even straight git-cli - as long as the issue key is in the commit message, it'll be linked.
To see more about connecting Jira to whichever source control you're using, check out these links:
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events