Git-Presentation/shell/create-first-branch
Jonathan Hodgson c6c938207f Adds references and branches slides
Mostly adds slides about references and branches. Also tweaked python
start code and re-aranged / tweaked some existing slides
2020-06-12 21:05:59 +01:00

13 lines
366 B
Bash
Executable file

#!/usr/bin/env bash
cd /tmp/demo
git switch master > /dev/null
git branch -D test > /dev/null
echo '$ git branch -v'
git -c color.ui=always branch -v
echo '$ git switch -c test'
git -c color.ui=always switch -c test
echo '$ git branch -v'
git -c color.ui=always branch -v
echo '$ git log --oneline --all'
git -c color.ui=always log --oneline --all --decorate=short