It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Answer 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
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,125 views 0 11
Read article

Community Events

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

Events near you