python - Git pull failed to my web server -
locally (cloud9), have commited changes repo (https://github.com/edward408/my-first-blog), when perform git pull on deployment server (pythonanywhere) following error:
updating aef1181..5d68bfa error: local changes following files overwritten merge: db.sqlite3 please, commit changes or stash them before can merge. aborting
i have pushed changes local console (cloud9) , made sure veryfing git status afterwards. seems best path long-term updatede git on pythonanywhere while updating local git @ same time. however, how implement without starting new repo again? id prefer not change have on pythonanywhere.
anywho, best feasible solution @ point in time?
edited: not same suggested link. have local dev environment pushing updates project repo. use git stash on pythonanywhere, have push there well. unless means executing stash locally?
all means db.sqlite3
has been modified on production server. because of this, git isn't sure whether ok overwrite new code (because file present in repo). really, should add file .gitignore
, can around (on production server) running:
git stash # pull git stash pop
basically, stash "saves" modified files haven't been committed , allows later restore popping off again, after merge has overwritten it. https://git-scm.com/book/en/v1/git-tools-stashing
Comments
Post a Comment