-
Notifications
You must be signed in to change notification settings - Fork 0
/
samples2.sh
79 lines (57 loc) · 1.42 KB
/
samples2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
set -x #echo on
# Drop and recreate the workspace
rm -rf samples2
mkdir -p samples2
cd samples2
# New git repo
git init
# Create a Release Branch
git checkout -b release/1.0.0
# Delete the Master Branch
git branch -d master
# Prepare the first commit
echo "lorem ipsum" > foo.txt
git add -A
git commit -am "Initial Commit"
# Prepare the second commit
echo "lorem ipsum" > bar.txt
git add -A
git commit -am "Second Commit"
# Prepare the second commit
echo "lorem ipsum" > foobar.txt
git add -A
git commit -am "Third Commit"
read -p "Press [Enter] to continue..."
# Feature Branches
git branch release/2.0.0
# Dashboard Feature Commit
echo "lorem ipsum" > dashboard.html
git add -A
git commit -am "Dashboard screen"
# Another Dashboard Feature Commit
echo "lorem ipsum" > dashboard.js
git add -A
git commit -am "Dashboard screen bugfix"
sleep 2s
git checkout release/2.0.0
# Customer Feature Commit
echo "lorem ipsum" > customer.html
git add -A
git commit -am "Customer screen"
# Another Customer Feature Commit
echo "lorem ipsum" > customer.js
git add -A
git commit -am "Customer screen enhancement"
read -p "Press [Enter] to continue..."
#git checkout release/2.0.0
# Feature Branch
git merge release/1.0.0 --no-ff
# Login Feature Commit
echo "lorem ipsum" > login.html
git add -A
git commit -am "Login screen"
# Another Login Feature Commit
echo "lorem ipsum" > login.js
git add -A
git commit -am "Login screen validation"