从 Source Tree 3 上传到 GitHub 和 Bitbucket 的错误消息

Error message to upload from Source Tree 3 to GitHub and Bitbucket

背景

我做了什么

弹出错误消息

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/HEAD:refs/heads/HEAD 
Pushing to https://github.com/myusernameongithub/myprojectnameongithub.git
error: src refspec refs/heads/HEAD does not match any.
error: failed to push some refs to 'https://github.com/myusernameongithub/myprojectnameongithub.git'
Completed with errors, see above

目标

我有什么tried/looked起来

解决方案

  • 右击第一张图上的头像标签
  • 选择分支
  • 选择 Delete branches 删除所有你不想拥有的分支(重要的是添加在你的服务器上的远程海滩+你保留在本地的分支,所以要注意什么是什么)
  • git reset --hard COMMIT_NEMUR_AND_LETTERS 这会跳回到给定的分支并删除它上面的所有内容。