前提・実現したいこと
EC2で立ち上げたUbuntu上に、自作のWebアプリをgit cloneしました。
その後git pullにて修正を取り込んでいましたが、先ほどgit pullしたところ下記のエラーが出ました。
発生している問題・エラーメッセージ
error: Your local changes to the following files would be overwritten by merge: hoge/settings.py Please commit your changes or stash them before you merge. Aborting
試したこと
Ubuntu上のvimで編集してしまったものがありbitbucketのリモートリポジトリと差分が発生しているのではと判断しまして、
git commit
を行いましたが、下記のようにpullをするようなメッセージが出ました。
On branch master Your branch and 'origin/master' have diverged, and have 1 and 2 different commits each, respectively. (use "git pull" to merge the remote branch into yours) Changes not staged for commit: modified: hoge/settings.py Untracked files: static/admin/ no changes added to commit
pullもcommitも効かないとなると、スタッシュをするしかないのでしょうか。
今後の運用に支障が出ないようなエラー解決を図りたいと思っており、お力添えいただけますと幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/14 01:39