Created
March 2, 2010 21:29
-
-
Save samuelspiza/319971 to your computer and use it in GitHub Desktop.
Creating a git repo with a merge conflict for testing purposes.
This file contains 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
#!/bin/sh | |
# Creating a git repo with a merge conflict for testing purposes. | |
mkdir merge | |
cd merge | |
git init | |
echo "BASE" > conflict.txt | |
git add conflict.txt | |
git commit -m "Initial commit" | |
git checkout -b br | |
echo "REMOTE" > conflict.txt | |
git commit -a -m "br commit" | |
git checkout master | |
echo "LOCAL" > conflict.txt | |
git commit -a -m "master commit" | |
git merge br |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment