summaryrefslogtreecommitdiff
path: root/demo-script
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-19 09:48:04 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-19 09:48:04 +0300
commitee133f561adfb90ed2558f94d2fc347bc30e2316 (patch)
treef9913a435a1f9c6dd8d10f0a8674cb64429a2310 /demo-script
parentdemo-script (diff)
downloadgit-prompt-ee133f561adfb90ed2558f94d2fc347bc30e2316.tar.gz
git-prompt-ee133f561adfb90ed2558f94d2fc347bc30e2316.tar.bz2
git-prompt-ee133f561adfb90ed2558f94d2fc347bc30e2316.zip
demo-script
Diffstat (limited to 'demo-script')
-rw-r--r--demo-script38
1 files changed, 19 insertions, 19 deletions
diff --git a/demo-script b/demo-script
index a2a8cc4..d22d728 100644
--- a/demo-script
+++ b/demo-script
@@ -5,28 +5,28 @@ clear
mkdir demo
cd demo
git init
-echo "1st line" > file
-git add file
-touch untracked-file
-rm untracked-file
-git commit -q -m "1st line" file
+echo "1st line" > FOO
+git add FOO
+touch untracked-FOO
+rm untracked-FOO
+git commit -q -m "1st line" FOO
git checkout -b test
-echo "added 2nd line in test" >> file
-git add file
-echo "2nd file" > file2
-git add file2
-echo "added 3nd line in file" >> file
-git add file
-git commit -q -m "2nd and 3rd lines"
+echo "added 2nd line in test" >> FOO
+git add FOO
+echo "2nd FOO" > BAR
+git add BAR
+echo "added 3nd line" >> FOO
+git add FOO
+git commit -q -m "FOO moded, BAR added"
git checkout master
-cat file
-echo "now added 2nd line in master" >> file
-git add file
+cat FOO
+echo "now added 2nd line in master" >> FOO
+git add FOO
git commit -q -m "2nd line"
git merge test
-git-cat-file -p test:file > file
-git add file
+git-cat-FOO -p test:FOO > FOO
+git add FOO
git commit -q -m "merged"
-cat file
+cat FOO
git checkout HEAD^
-cat file
+cat FOO