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

0 votes
Accepted answer

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
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

841 views 3 2
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