You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Is there any way to add a comment to commit via command line?
Or is it possible to do it via Sourcetree?
Everything instructions so far what i have found is only via Bitbucket UI.
Thank you in advance,
For new commits:
git commit -m "line #1" -m "line #2"
For changing last commit message (given that it was not pushed yet):
git commit --amend -m "This is the updated commit message"
For changing previous commits, you will need git rebase.
For a more detailed explanation, have a look here: https://www.atlassian.com/git/tutorials/rewriting-history
Hi @Erez Maadani ,
Thank you for the reply, but actually I mean commit comment, not commit message.
Payload is described here https://confluence.atlassian.com/bitbucketserver0721/event-payload-1115665959.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash#Eventpayload-repositoryevents
in "Commit comment created" section and it's possible to add the comment via api to the commit or in UI, but i'm wondering is there also an option to add it via git command or via Sourcetree?
Thank you in advance