9 months ago
10 lines444 B
git switch -c colors | |
sed -i 's/blue/green/' style.css && git commit -am "Green buttons" | |
git switch main | |
sed -i 's/blue/red/' style.css && git commit -am "Red buttons" | |
git merge colors # CONFLICT (content): Merge conflict in style.css | |
# edit style.css, keep the colour you want, remove the <<<<<<< ======= >>>>>>> lines | |
git add style.css | |
git commit # finishes the merge | |
| |
# Try changing the values above and run it again. |