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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 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