github - Git telling me to pull, then commit, then pull? -
i trying push new changes, have conflicted file. after trying push, following error:
merge remote changes (e.g. 'git pull') before pushing again. see 'note fast-forwards' section of 'git push --help' details.
ok, need use git pull. try use git pull
, error:
error: local changes following files overwritten merge: db/profile_edit.php please, commit changes or stash them before can merge.
but, when try commit, go first error. should do? changes on remote repo newer ones on local machine. so, how open diff tool , make changes , tell git have made changes let me push changes?
try do
$ git pull --rebase
to pull remote changes before yours, , commit. , see if works.
if not work, try instead:
$ git stash $ git pull --rebase $ git stash pop
to save changes on stash
, apply remote commits inside work-repository, , apply changes (saved stash
) inside work-repository again.
Comments
Post a Comment