Created
July 20, 2016 18:58
-
-
Save henrahmagix/4dcc6baf1fe3140ec11b51da03d575ee to your computer and use it in GitHub Desktop.
Git Presentation Demo: merge conflicts
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
touch foo | |
git add foo | |
git commit --message 'Create foo' | |
git checkout --branch one | |
echo one > foo | |
git commit --message 'Add one to foo' | |
git checkout --branch two master --no-track | |
echo two > foo | |
git commit --message 'Add two to foo' | |
git checkout master | |
git log | |
git merge one | |
git log | |
cat foo | |
git merge two | |
git log | |
cat foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment