Add a tutorial / walkthrough for pure-git workflow.

TBR=agable@chromium.org, szager@chromium.org
BUG=261743

Review URL: https://codereview.chromium.org/225433003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@263164 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/docs/src/demo_repo.sh b/docs/src/demo_repo.sh
new file mode 100755
index 0000000..a07a47e
--- /dev/null
+++ b/docs/src/demo_repo.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+. common_demo_functions.sh
+
+TDIR=$(mktemp --tmpdir -d demo_repo.XXXXXXXXXX)
+trap "rm -rf $TDIR" EXIT
+
+cd $TDIR
+silent git clone "$REMOTE" .
+silent git reset --hard stage_1
+silent git update-ref refs/remotes/origin/master stage_1
+silent git tag -d $(git tag -l 'stage_*')
+silent git checkout origin/master
+silent git branch -d master
+silent git config color.ui always
+
+if [[ ! "$BLANK_DEMO"  ]]
+then
+  silent git new-branch cool_feature
+
+  c "Add widget"
+  c "Refactor spleen"
+  silent git tag spleen_tag
+
+  c "another improvement"
+
+  silent git new-branch --upstream_current subfeature
+  c "slick commenting action"
+  c "integrate with CoolService"
+
+  silent git checkout cool_feature
+  c "Respond to CL comments"
+
+  silent git new-branch fixit
+  c "Epic README update"
+  c "Add neat feature"
+
+  silent git new-branch --upstream_current frozen_branch
+  c "a deleted file"
+  c "modfile"
+  c "FREEZE.unindexed"
+fi
+