2017-10-29 4 views
0

私はhttps://code.tutsplus.com/tutorials/quick-tip-how-to-work-with-github-and-multiple-accounts--net-22574の手順に従っています。 同じコンピュータ上で2つのgithubアカウントを使用するには、

しかし、私はこの次のエラーを取得していますpusing時

は:

[email protected]:~/Desktop/ReduxForm$ git remote add new_origin [email protected]:RiyaKapuria/ReduxForm.git 
[email protected]:~/Desktop/ReduxForm$ git push new_origin master 
ERROR: Permission to RiyaKapuria/ReduxForm.git denied to railsfactory-riya. 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
[email protected]:~/Desktop/ReduxForm$ 

答えて

1

あなたはgithub.comの代わりにホスト名の別名githubの-会社を使用する必要があります。

remote add new_origin [email protected]:RiyaKapuria/ReduxForm.git 
+0

リヤする@ RFL113://github-personal/RiyaKapuria/ReduxForm.git リヤ@ RFL113::〜/デスクトップ/ ReduxForm $ gitのプッシュorigin1のmasterfatal:できない〜/デスクトップ/ ReduxForm $ gitのリモートorigin1 HTTPSを追加'https://github-personal/RiyaKapuria/ReduxForm.git/'にアクセスする:ホストを解決できませんでした:github-personal riya @ RFL113:〜/ Desktop/ReduxForm $ –

+0

設定ファイルを修正しました。 – Scriptonomy

+0

#railsfactory-リヤアカウント ホストgithub.com ホスト名のgithub.com ユーザーのgit IdentityFileにの〜/ .ssh/id_rsaと #RiyaKapuriaアカウント ホストgithubの-個人 ホスト名のgithub.com ユーザーのgit IdentityFileに〜/ .ssh/id_rsa_personal –

関連する問題