5 touch file1.txt file2.txt file3.txt
7 echo 'change 1' > file1.txt
10 git commit -m 'add file1'
11 echo 'change 2' > file2.txt
14 git commit -m 'add file2'
15 echo 'change 3' > file3.txt
17 git commit -m 'add file3'
20 git checkout -b a_branch
21 echo 'change 4' > file4.txt
23 git commit -m 'add file4'
24 echo 'change 5' > file5.txt
26 git commit -m 'add file5'
27 echo 'change 6' > file6.txt
29 git commit -m 'add file6'
34 git --git-dir=testrepo/.git config core.bare true
35 cp -r testrepo/.git testrepo.git