ローカルのmasterリポジトリからリモートのmasterではないブランチhogeというブランチにpushしたい場合はどうすればいいですか?
git
1git push origin hoge 2error: src refspec myong does not match any. 3error: failed to push some refs to 'リモート先のURL'
pushしたら上記のようなエラーメッセージがでてpushできません。
調べたら原因がcommitしていないからと書いてありcommitしても
git
1git commit -m "hoge" 2On branch master 3Your branch is ahead of 'origin/master' by 3 commits. 4 (use "git push" to publish your local commits) 5nothing to commit, working directory clean
とでて、commitともできませんでした。
push先はBitBucketです。
やり方をしている方がいましたら教えてください。
よろしくお願いします!
やりたいことが今ひとつ分からないのですが、リモートの「hoge」branchは既存のbranchですか?それとも新規に追加したいのですか?
ローカルには「hoge」branchは存在しないのですか?(念のため)