2018-07-21 07:57:54 +02:00
|
|
|
#!/bin/bash
|
2018-08-12 07:54:59 +02:00
|
|
|
set -ex; rm -rf repo; mkdir repo; cd repo
|
2018-07-21 07:57:54 +02:00
|
|
|
|
|
|
|
git init
|
|
|
|
|
2018-07-21 09:48:27 +02:00
|
|
|
function add_spacing {
|
|
|
|
for i in {1..60}
|
|
|
|
do
|
|
|
|
echo "..." >> $1
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2018-07-21 07:57:54 +02:00
|
|
|
echo "Here is a story that has been told throuhg the ages" >> file1
|
2018-07-21 09:48:27 +02:00
|
|
|
|
2018-07-21 07:57:54 +02:00
|
|
|
git add file1
|
|
|
|
git commit -m "first commit"
|
|
|
|
|
|
|
|
git checkout -b develop
|
|
|
|
|
|
|
|
echo "once upon a time there was a dog" >> file1
|
2018-07-21 09:48:27 +02:00
|
|
|
add_spacing file1
|
|
|
|
echo "once upon a time there was another dog" >> file1
|
2018-07-21 07:57:54 +02:00
|
|
|
git add file1
|
|
|
|
git commit -m "first commit on develop"
|
|
|
|
|
|
|
|
git checkout master
|
|
|
|
|
|
|
|
echo "once upon a time there was a cat" >> file1
|
2018-07-21 09:48:27 +02:00
|
|
|
add_spacing file1
|
|
|
|
echo "once upon a time there was another cat" >> file1
|
2018-07-21 07:57:54 +02:00
|
|
|
git add file1
|
|
|
|
git commit -m "first commit on develop"
|
|
|
|
|
|
|
|
git merge develop # should have a merge conflict here
|