Skip to content

Commit b10603b

Browse files
committed
add notes to git scripts
1 parent 385d381 commit b10603b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

link_git_modules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/sh
22

3+
# This command sets up any git submodules in the project.
4+
# Generally, this only needs to be run once on a freshly cloned
5+
# project, but won't harm anything if run later, provided
6+
# you modify it to accomodate any submodules that should *NOT*
7+
# be on the `master` branch.
8+
39
git submodule init
410

511
git submodule update

update_git_modules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/sh
22

3+
# This command can be run any time to ensure that all submodules are on
4+
# the most recent commit for the configured branch, as set up
5+
# in the `link_git_modules` script.
6+
37
git submodule foreach git pull origin

0 commit comments

Comments
 (0)