#!/usr/bin/env bash DIR="$(dirname "$(readlink -f "$0")")" ( rm -rf /tmp/demo-clone git clone /tmp/demo-remote /tmp/demo-clone cd /tmp/demo-clone git config user.name "Bob Bobbington" cp "${DIR}/../code-examples/python-with-cow.py" greeting.py > /dev/null git add greeting.py git commit -m "Adds Cow option" git push ) > /dev/null 2>&1 cd /tmp/demo/ echo '$ git fetch' git fetch echo '$ git status' git -c color.ui=always status echo '$ git log --oneline --all --graph' git -c color.ui=always log --oneline --all --graph --decorate=short echo '$ git merge' git -c color.ui=always merge origin/master