Hello,
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,
Jaanus
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.