Skip to content

Commit 25b46b8

Browse files
committed
Remove more submodules
1 parent 89162d0 commit 25b46b8

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

Diff for: .gitmodules

-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
[submodule "demos/react-tutorial-demo"]
2-
path = demos/react-tutorial-demo
3-
url = https://github.com/code-hike/react-tutorial-demo
4-
[submodule "packages/css-filters-screencast"]
5-
path = demos/css-filters-screencast
6-
url = [email protected]:pomber/css-filters-screencast.git

Diff for: demos/css-filters-screencast

-1
This file was deleted.

Diff for: demos/react-tutorial-demo

-1
This file was deleted.

Diff for: scripts/rm-submodule.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
# Remove config entries:
66

7-
git config -f .git/config --remove-section submodule.demos/$1
8-
git config -f .gitmodules --remove-section submodule.demos/$1
7+
git config -f .git/config --remove-section submodule.external/$1
8+
git config -f .gitmodules --remove-section submodule.external/$1
99
git add .gitmodules
1010

1111
# Remove directory from index:
1212

13-
git rm --cached demos/$1
13+
git rm --cached external/$1
1414

1515
# Delete unused files:
16-
rm -rf demos/$1
17-
rm -rf .git/modules/demos/$1
16+
rm -rf external/$1
17+
rm -rf .git/modules/external/$1

0 commit comments

Comments
 (0)