create dir
mkdir git-wed
cd git-wed
create repo
git init
echo 'echo gimme coffee' > coffee.sh
chmod 755 coffee.sh
stage new file
git add coffee.sh
create first commit:
git commit -m "coffee added"
echo 'echo gimme milk' >> coffee.sh
git commit -am "milk added"
echo 'echo gimme 2 sugars' >> coffee.sh
git commit -am "sugar added"
git tag v1.0
echo 'echo lets go lunch' > lunch.sh
chmod 755 lunch.sh
git add lunch.sh
git commit -m "lunch added"
echo 'echo gimme pacal' >> lunch.sh
git commit -am "pacal ordered"
git checkout -b fix v1.0
sed -i.bak 's/gimme/give me/' coffee.sh
git commit -am "typo fixed"
new commit
sed -i.bak 's/2/3/' coffee.sh
git commit -am "one more sugar"