Skip to content

Instantly share code, notes, and snippets.

@henrahmagix
Created July 20, 2016 18:58
Show Gist options
  • Save henrahmagix/4dcc6baf1fe3140ec11b51da03d575ee to your computer and use it in GitHub Desktop.
Save henrahmagix/4dcc6baf1fe3140ec11b51da03d575ee to your computer and use it in GitHub Desktop.
Git Presentation Demo: merge conflicts
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