You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
605 B

#!/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