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.

22 lines
757 B

#!/usr/bin/env bash
cd /tmp/demo
echo '$ git switch master'
git switch master
echo '$ vim greeting.py'
sed -i 's/Hello World/HELLO WORLD/g' greeting.py > /dev/null
echo ' # CAPITALISE HELLO WORLD #'
echo '$ git commit -am "Capitalises Hello World"'
git -c color.ui=always commit -am "Capitalises Hello World"
echo '$ git switch test'
git switch test
echo '$ vim greeting.py'
sed -i '3iimport sys\n' greeting.py > /dev/null
echo ' # Adds the line "import sys" #'
echo '$ git commit -am "Adds sys import for arg parsing"'
git commit -am "Adds sys import for arg parsing"
#echo '$ git diff master..test'
#git -c color.ui=always diff master..test
#echo '$ git log --all --oneline --graph'
#git -c color.ui=always log --all --oneline --graph --decorate=short