-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdnd.sh
executable file
·55 lines (49 loc) · 859 Bytes
/
dnd.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
# Reset
rm -rf .git
rm main.md
rm server.md
rm client.md
touch main.md
touch server.md
touch client.md
touch .gitignore
echo "*.sh" >> .gitignore
git init
# Main setup commit
echo "initialize" >> main.md
git add .
git commit -m "initialize"
echo "c1" >> main.md
git add .
git commit -m "c1"
echo "c2" >> main.md
git add .
git commit -m "c2"
# Server setup commit
git checkout -b server
echo "c3" >> server.md
git add .
git commit -m "c3"
echo "c4" >> server.md
git add .
git commit -m "c4"
echo "c5" >> server.md
git add .
git commit -m "c5"
# Client setup commit
git checkout server~2
git checkout -b client
echo "c6" >> client.md
git add .
git commit -m "c6"
echo "c7" >> client.md
git add .
git commit -m "c7"
# Main do some work
git checkout master
echo "c8" >> main.md
git add .
git commit -m "c8"
echo "c9" >> main.md
git add .
git commit -m "c9"