从源代码树3上传到GitHub和Bitbucket的错误消息

问题描述 投票:0回答:1

背景

  • macOS 10.12
  • SourceTree 3
  • GitHub
  • Bitbucket
  • Django项目

我做了什么

  • 出于隐私原因更改了文件名
  • 我想将先前提交的版本推送到GitHub而不是Bitbucket
  • 这已经工作了很长时间,但是由于这种新的伸出来的特性使我无法正常工作,所以我收到此错误消息(可以并且应该删除此伸出的RED分支)
  • 我在git reset --hard COMITIDNAME伸出分支之前就已经基于提交进行了重新定位

enter image description hereenter image description here

弹出错误消息

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

目标

  • 我只想保留1个标签并继续使用,将来使用该标签以后再上传到GitHub和Bitbucket(或者由于两个git存储位置而需要最少的标签数量,因此需要)] >>
  • 能够将我的git上传到Github和Bitbucket
  • 我尝试过/查找过的内容

背景macOS 10.12 SourceTree 3 GitHub Bitbucket Django Project由于隐私原因更改了文件名,我想将以前提交的版本推送到GitHub,而不是... ...

git github bitbucket atlassian-sourcetree
1个回答
0
投票

解决方案>>

© www.soinside.com 2019 - 2024. All rights reserved.