Created
February 14, 2013 08:54
-
-
Save skalnik/4951428 to your computer and use it in GitHub Desktop.
A small script that creates a merge conflict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
mkdir merge-conflict | |
cd merge-conflict | |
git init | |
echo 'DevconTLV Yay!' > greeting.txt | |
git add . | |
git commit -m 'Initial commit' | |
git checkout -b conflict | |
echo 'DevconTLV Woo!' > greeting.txt | |
git commit -am 'Woo not yay' | |
git checkout master | |
echo 'Yay! DevconTLV!' > greeting.txt | |
git commit -am 'Celebrate first' | |
echo 'Now cd over and run `git merge conflict`!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment