How do i add/remove tag using a commit message ?

Hi,

I just started using Source Tree. I got stuck when i wanted to tag a branch. There is a option to tag, i tried that it did tag the branch but uses its own commit message, so when i try to push it to repository, it fails because our pre-commit hook doesn't allow to commit without a "Jira Number".

This happens for both Adding/Removing tag, is there a way i can use my own commit message to add/remove tag.

Thank you,

Suvir

1 answer

1 accepted

No you can't currently customise the tag message. Your pre-commit hook seems a bit too strict, there are plenty of commits that wouldn't realistically have a real JIRA number, such as tags, merges and branch closures. I can log a feature request for the tag, but in practice I don't think that pre-commit hook has been fully thought through.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you