Write slides about merge with conflict

This commit is contained in:
Jonathan Hodgson 2020-06-13 00:07:22 +01:00
parent c6c938207f
commit 1df85219c9
7 changed files with 127 additions and 3 deletions

14
shell/fix-complex-merge Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
DIR="$(dirname "$(readlink -f "$0")")"
cd /tmp/demo
cp "${DIR}/../code-examples/python-merged.py" greeting.py > /dev/null
echo '$ vim greeting.py'
echo ' # Fix the conflict(s) #'
echo '$ git add greeting.py'
git add greeting.py
echo '$ git commit'
git commit -F .git/COMMIT_EDITMSG
echo '$ git log --oneline --all --graph'
git -c color.ui=always log --oneline --all --graph --decorate=short