Google検索したら見かけるようなよくあるミスとは違います。
Gitでリモートリポジトリ(リモートリポジトリ)にpushしようとすると下記のようなエラーが出ます。
$ git push test mastar error: src refspec mastar does not match any. error: failed to push some refs to 'https://github.com/*********/test.git' $
ちゃんと全てのファイルをaddしてcommitもしています。
$ git status On branch master nothing to commit, working tree clean $
そしてブランチも使用していません。
$ git branch * master $
考えられる解決案や原因かもしれないことなど、なんでも教えて欲しいです。
質問や情報の追加の要請なども大歓迎です。
よろしくお願いします。
環境
macOS 10.12.2
git 2.10.1
miyabi-sunさんへ
Bash
1$ git fetch 2fatal: No remote repository specified. Please, specify either a URL or a 3remote name from which new revisions should be fetched. 4$ 5$ 6$ 7$ git log test/mastar 8fatal: ambiguous argument 'test/mastar': unknown revision or path not in the working tree. 9Use '--' to separate paths from revisions, like this: 10'git <command> [<revision>...] -- [<file>...]' 11$ 12$ 13$ 14$ git log mastar 15fatal: ambiguous argument 'mastar': unknown revision or path not in the working tree. 16Use '--' to separate paths from revisions, like this: 17'git <command> [<revision>...] -- [<file>...]' 18$ 19$ 20$ 21$ git log 22commit 153913c33b2b9fa7ca77989f2e67ec3a7fd5e0f1 23Author: ********* <*****************@gmail.com> 24Date: Fri Jan 6 21:49:23 2017 +0900 25 26 init 27$
どうやら勘違いではなさそうです。
実はこれは、エラーの検証のためにまっさらなリポジトリに1つのテキストファイルをプッシュするという実験のためのものなので、まだこのリポジトリでは1度もpushは成功していなことになります。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/06 12:10
退会済みユーザー
2017/01/06 12:17
2017/01/06 12:35
退会済みユーザー
2017/01/06 12:37
2017/01/06 12:40
退会済みユーザー
2017/01/06 22:27
2017/01/07 00:00 編集
退会済みユーザー
2017/01/08 23:30