masterブランチからフィーチャーブランチを作成し、ブランチに追加してコミットしました。エラー:src refspec my-branchが一致しません
私の仕事をリモートのリポジトリにプッシュしたいのですが、失敗しました。問題を解決するために私は何ができますか?ありがとう。
git push
コマンドを実行しているときに、パスワードを要求しませんでした。それは普通ですか?
p.s.私はWindows 10のcmdを使用しています。
> git push origin my-branch
error: src refspec my-branch does not match any.
error: failed to push some refs to 'https://git.xxx.net/Infrastructure'
>git commit -m "my work"
On branch my-branch
nothing to commit, working tree clean
>git branch
master
* my-branch
>git show-ref
687f22d54b89e0de91f16cf79d52c6ea21a3f562 refs/heads/master
f85d2aa0900fb356d8d120f454ff2362d7475edb refs/heads/my-branch
687f22d54b89e0de91f16cf79d52c6ea21a3f562 refs/remotes/origin/HEAD
687f22d54b89e0de91f16cf79d52c6ea21a3f562 refs/remotes/origin/master
>git log
commit f85d2aa0900fb356d8d120f454ff2362d7475edb
Author: tim <[email protected]>
Date: Fri Feb 3 23:50:43 2017 -0500
my work
commit 687f22d54b89e0de91f16cf79d52c6ea21a3f562
Author: Kevin <[email protected]>
Date: Thu Jan 19 12:26:26 2017 -0500
Added gitignore
あなたは 'my-branch'にコミットしていますか? 'git log'出力? –
'git log'の出力については、私の追加を参照してください。私が私の支店にコミットしているかどうかはどうすればわかりますか? – Tim