現在、vikas@VIKAS-PC /D/code/myrepo (マスター) を指す Windows の git bash
次の git コマンドを実行しました。
$ git config --global user.name "Vikas Sharma"
$ git config --global user.email "vikas.sharma.in@gmail.com"
git init
git add .
git commit -m "initial commit"
$ git status
On branch master nothing to commit (working directory clean)
これで、「git remote」コマンドは何も返しません。私は元のレポを期待していました。
そのため、以下に示すようにオリジンレポを作成しました。
$ git remote add origin D:/code/myrepo
$ git push origin "some-external-repo"
しかし、エラーを下回っています:
error: src refspec myrepo does not match any.
error: failed to push some refs to 'D:/code/myrepo'