Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. The conflict can be resolved by ignoring the local changes and using the version of the file from upstream

    Code Block
    languagebash
    themeEmacs
    git rebase --skip
    

    This will overwrite your local changes with the upstream changes.

  2. Resolving the merge conflict manually
    The command "git diff" will show the lines that were changed locally and by the upstream version. This file can now be added to keep whatever part of the local or remote change you want.
    After the

    file is edited and

...

  1. merge conflict is resolved commit changes

    Code Block
    languagebash
    themeEmacs
    git 

...

  1. commit -a -

...

  1. m "commit message"
    

    And then continue with the rebase and push everything upstream

    Code Block
    languagebash
    themeEmacs
    git rebase --continue
    

...

More information https://www.derekgourlay.com/blog/git-when-to-merge-vs-when-to-rebase/

  1. git push origin 

...

  1. master