Search code examples
visual-studio-2017synchronizationbitbucketcommit

Cannot push commits to the Branch


I did some version changes in my project and commit those. But I cannot Sync those and push to the server. SO that I cannot make a pull request in bitbucket?

I am using Visual studio 2017

It Shows the error message"Failed to push to the remote repository. See the Output window for more details."

In the out window, it display "One of your commit messages is missing a valid issue key:"

Can any one please help me? I am new to this.


Solution

  • The actual error message is:

    One of your commit messages is missing a valid issue key:

    Most likely, this is being caused by either a client or server side Git hook. The fix here is probably to check the commits you have made since last pulling the branch, and verify that each one has an issue key/number.

    As to why the Git hook is ensuring that each commit has an issue key, it is to ensure that your commit history can easily be correlated with your team's issue tracker tool (such as Jira or Trello).