Railsアプリを作成し、gitにpushしようとするとエラーが出てしまい解決出来ずにいますのでご教授お願いいたします。
やったことは以下のなります。
$ git add . $ git status $ git commit -m "first" $ git remote add origin https://github.com/example123/CheckApp.git $ git push -u origin master ここでエラーが発生しました。 error: The requested URL returned error: 403 Forbidden while accessing https://github.com/example123/CheckApp.git/info/refs fatal: HTTP request failed
以下のことを実行しました。
$ git remote set-url origin https://example123@github.com/example123/CheckApp.git $ git remote -v origin https://example123@github.com/example123/CheckApp.git (fetch) origin https://example123@github.com/example123/CheckApp.git (push) $ git push -u origin master password: XXXXXXXXXXXX すると今度は以下のエラーが出ました。 To https://example123@github.com/example123/CheckApp.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://example123@github.com/example123/CheckApp.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details.
自力では解決出来ずにいますのでどなたかご教授お願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。