前提・実現したいこと
railsのアプリをGitで管理しようとしているのですが、以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
[root@localhost myapp]# git push origin master Password: To https://user@github.com/user/myapp.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://user@github.com/user/myapp.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.
補足情報(FW/ツールのバージョンなど)
ちなみに、git pull
とすると、
You are not currently on a branch, so I cannot use any 'branch.<branchname>.merge' in your configuration file. Please specify which remote branch you want to use on the command line and try again (e.g. 'git pull <repository> <refspec>'). See git-pull(1) for details.
となります。
rails 5.2.1
Git 1.7.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/24 11:39
2018/11/24 12:40