5
私はGitを使い始めて、セットアップして最初のリポジトリを作成しました。私は最初のコミットとしてREADMEを追加しようとしている、と私は正確にhttp://help.github.com/create-a-repo/の手順を追ってきたが、私はこの段階で立ち往生:gitリポジトリへの最初のコミットでのトラブル
ERROR: username/Hello-World.git doesn't exist. Did you enter it correctly?
:私はこのエラーを取得する
git push -u origin master
git remote add
コマンドが間違っていると思います。ユーザー名とリポジトリ名を忘れてしまいました。正しい引数で再試行してください:
$ git remote add origin [email protected]:christineh/Hello-World.git
fatal: remote origin already exists.
$ git push -u origin master
Enter passphrase for key '/Users/christinehorvat/.ssh/id_rsa':
ERROR: username/Hello-World.git doesn't exist. Did you enter it correctly?
fatal: The remote end hung up unexpectedly'
これをクリーンアップして正しいリモートを取得するにはどうすればよいですか?
あなたはgit remote addコマンドでユーザー名とgit repo名を置き換えましたか? – Mat
GitHubアカウントをお持ちですか?私は 'http:// help.github.com/create-a-repo /'の手順を踏んで、Hello-WorldというGitHubリポジトリを作成しました。私のローカルマシンで使用するように設定するリモート設定コマンドGitHubは 'git remote add origin [email protected]:srivaths/Hello-World.git'です。その中に "username"がないことを確認してください。 –
@Sri Sankaran - このコマンドを入力したときの結果は次のとおりです。$ git remote add origin [email protected]:christineh/Hello-World.git 致命的:リモートオリジンが既に存在します。 –