I'm using sourcetree with bitbucket.org. I'm trying to push changes to the main repository. When I do, it doesn't work and I have this error message:
Pushing to https://email@example.com/jhollway/gnevar.git
POST git-receive-pack (1186 bytes)
remote: One of your commit messages is missing a valid issue key:
remote: 0cb639f: Tried to solve issue 120 by deleting some quotation marks and added commas for the comment section.
remote: For more information, see https://confluence.atlassian.com/x/ZwjoE.
= [up to date] 0.0.1 -> 0.0.1
= [up to date] 0.0.2 -> 0.0.2
= [up to date] 0.0.3 -> 0.0.3
= [up to date] 0.0.4 -> 0.0.4
= [up to date] 0.0.5 -> 0.0.5
! [remote rejected] develop -> develop (pre-receive hook declined)
error: failed to push some refs to 'https://firstname.lastname@example.org/jhollway/gnevar.git'
The problems seems to be with the of commit 0cb639f, since it doesn't include precisely the issue number. How can I add that? I'm not able to go back to this commit and change the message.
I'd recommend doing fixing this in the command line. As that commit has not been pushed yet you can change the commit message doing a rebase, as explained here.
Once the issue number has been corrected, you should be able to push from Sourcetree with no issues.
Let us know how it goes!
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
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