You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch back to master, empty readme an create branch-readme-conflict
git checkout master
git checkout -b readme
echo "" > README.md
git commit -a -m "Clean README.md"
git checkout -b readme-conflict
echo "This is the first line of the readme.
This line should produce a conflict.
This is the last line of the readme.
" > README.md
git commit -a -m "Changed README.md"
# Switch back to readme and change README.md
git checkout readme
echo "This is the first line of the readme.
Just one differing line can produce a conflict.
This is the last line of the readme.
" > README.md
git commit -a -m "Changed README.md"
Rewrite branches into linear history
git checkout branch-A-B-C
git rebase master
git checkout branch-D
git rebase branch-A-B-C
git checkout branch-E
git rebase branch-D
git checkout master
git merge branch-E