-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset.sh
More file actions
executable file
·69 lines (61 loc) · 1.04 KB
/
Copy pathreset.sh
File metadata and controls
executable file
·69 lines (61 loc) · 1.04 KB
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
#!/bin/bash
echo "🔄 Resetting all Git Hero examples..."
echo ""
# Block 1: Daily Developer Workflow
cd examples/01-stash
./reset.sh
cd ../02-merge
./reset.sh
cd ../03-restore
./reset.sh
cd ../04-reflog
./reset.sh
# Block 2: Clean History
cd ../05-rebase-interactive
./reset.sh
cd ../06-fixup
./reset.sh
cd ../07-reset
./reset.sh
cd ../08-revert
./reset.sh
# Block 3: Debugging & Investigation
cd ../09-bisect
./reset.sh
cd ../10-log
./reset.sh
cd ../11-diff
./reset.sh
# Block 4: Advanced Workflows
cd ../12-worktree
./reset.sh
cd ../13-cherry-pick
./reset.sh
cd ../14-submodules
./reset.sh
cd ../15-subtree
./reset.sh
cd ../16-filter-branch
./reset.sh
cd ../17-rerere
./reset.sh
cd ../18-checkout
./reset.sh
# Block 5: Alien workflows :)
cd ../19-sparse-checkout
./reset.sh
cd ../20-patch
./reset.sh
cd ../21-blame
./reset.sh
cd ../22-grep
./reset.sh
cd ../23-range-diff
./reset.sh
cd ../24-bundle
./reset.sh
cd ../..
echo ""
echo "✅ All git examples have been reset successfully!"
echo ""
echo "Run ./setup.sh to initialize all examples again."