背景
我做了什么
git reset --hard COMITIDNAME
伸出分支之前就已经基于提交进行了重新定位弹出错误消息
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
目标
我尝试过/查找过的内容
背景macOS 10.12 SourceTree 3 GitHub Bitbucket Django Project由于隐私原因更改了文件名,我想将以前提交的版本推送到GitHub,而不是... ...
解决方案>>