我创建了一个新分支,检查并提交:
git branch my-branch [HASH]
git checkout my-branch
git commit -am "Add some stuff to my new branch"
但是,我无法将其推送到 github。git push origin my-branch
返回:
error: src refspec branch does not match any.
error: failed to push some refs to 'https://github.com/Me/my-project.git'
git show-refs
看起来像这样:
[HASH] refs/heads/my-branch
[HASH] refs/heads/master
[HASH] refs/heads/some-branch
[HASH] refs/remotes/origin/master
[HASH] refs/remotes/origin/some-branch
[HASH] refs/stash
我需要做什么?