Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I can`t Push the branch to <remote> , along with necessary commits and objects

nayanangamuhandiram
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2018
nayananga@nayananga-Aspire-E5-575G:/opt/lampp/htdocs/registration$ git push 'https://nayanangamuhandiram@bitbucket.org/group4suoj2016/version-1.0.git' 'nayananga`s_branch'
Password for 'https://nayanangamuhandiram@bitbucket.org': 
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.02 KiB | 1.02 MiB/s, done.
Total 5 (delta 0), reused 0 (delta 0)
remote: 
remote: One of your commit messages is missing a valid issue key:
remote: 
remote:   3517c56: CompleteUserRegistrationUsingPhpAndMysqlDatabase
remote: 
remote: For more information, see https://confluence.atlassian.com/x/ZwjoE.
remote: 
To https://bitbucket.org/group4suoj2016/version-1.0.git
 ! [remote rejected] nayananga`s_branch -> nayananga`s_branch (pre-receive hook declined)
error: failed to push some refs to 'https://nayanangamuhandiram@bitbucket.org/group4suoj2016/version-1.0.git'

i get an error like this any help?

2 answers

1 vote
Gabriele Franck
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2018

Hi @nayanangamuhandiram

In case you enable the Require issue keys in commit messages feature in your repository settings, you will need to include issue key in your commit message.
For example:


git commit -m "ISSUE-1234 Commit message"

And this is why you're receiving this error, you didn't mentioned a issue key in your commit.

See documentation related: Link to a web service

 

You may want to disable the Require issue keys in commit messages setting under your repository settings > Links (Under workflow) > Click the toggle button to turn it off.

 

Let me know if this helps!

Gabi

cocooked
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 14, 2018

 I have same error  ! But I can't turn it off

Like Deleted user likes this
0 votes
pjoshi812
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2019

@Gabriele Franck tried 

git commit -m "ISSUE-1234 Commit message"

but it's not working, pls help

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events