links:: Source Control for Test Automation with Git MOC

5.1 Resolving Conflicts

5.1 Resolving Conflicts

Example - Resolving Conflict While Merging.

Change the same file in local branch and remotely, then merge changes in local branch with resolving conflict

git log --oneline                                                                                  git push origin                                                                                    git checkout -b feature/test9-lisa                                                                 git commit -am "add test9-lisa-resolve-conflict"                                                   git fetch                                                                                          git checkout master                                                                                git merge                                                                                          git checkout feature/test9-lisa                                                                    git fetch                                                                                          git checkout master                                                                                git merge                                                                                          git log --oneline                                                                                  git checkout feature/test9-lisa                                                                    git merge master                                                                                   git status                                                                                         git add .                                                                                          git status                                                                                         git commit                                                                                         git log --oneline                                         

Example - Resolving Conflict While Rebasing.

Change the same file in local branch and remotely, then rebase to remote master branch with resolving conflict

git checkout -b feature/test10-lisa                                                                git commit -am "add test10-lisa-resolve-conflict-renasing"                                         git checkout master                                                                                git fetch                                                                                          git status                                                                                         git merge                                                                                          git checkout feature/test10-lisa-resolve-conflict-renasing                                                                  git rebase master                                                                                  git status                                                                                         git add .                                                                                          git rebase --continue                                                                              git log --oneline