Skip to content

Commit

Permalink
add notes to git scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcher committed Nov 12, 2015
1 parent 385d381 commit b10603b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions link_git_modules
@@ -1,5 +1,11 @@
#!/bin/sh

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

git submodule init

git submodule update
Expand Down
4 changes: 4 additions & 0 deletions update_git_modules
@@ -1,3 +1,7 @@
#!/bin/sh

# This command can be run any time to ensure that all submodules are on
# the most recent commit for the configured branch, as set up
# in the `link_git_modules` script.

git submodule foreach git pull origin

0 comments on commit b10603b

Please sign in to comment.