Created
April 23, 2020 18:21
-
-
Save kriscooke/b4f3e9a2ce52fa406c48d0e5bee1cbe8 to your computer and use it in GitHub Desktop.
Revisions
-
kriscooke created this gist
Apr 23, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # https://ttboj.wordpress.com/2014/05/06/keeping-git-submodules-in-sync-with-your-branches/ # Create a file in your project's hooks: touch .git/hooks/post-checkout # And add the following: #!/bin/bash exec git submodule update # Then chmod u+x .git/hooks/post-checkout