-
-
Save mjsteinbaugh/c91dfd8659c20be6220c1d65df1dcbc6 to your computer and use it in GitHub Desktop.
Revisions
-
Slava Fomin II revised this gist
May 8, 2017 . 1 changed file with 10 additions and 0 deletions.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 @@ -18,6 +18,16 @@ `git config --global status.submoduleSummary true` — Script for pulling the main repo and updating the sumodules automatically: ```bash #!/usr/bin/env bash git pull "$@" && git submodule sync --recursive && git submodule update --init --recursive ``` ## Additional reading - [Mastering Git submodules](https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407) -
Slava Fomin II revised this gist
May 8, 2017 . 1 changed file with 1 addition and 1 deletion.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 @@ -8,7 +8,7 @@ — Initialize submodules after regular cloning: `git submodule update --init` — Make submodules to track their respective remote branches (instead of being in detached HEAD state): -
Slava Fomin II revised this gist
May 8, 2017 . 1 changed file with 10 additions and 2 deletions.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 @@ -2,11 +2,19 @@ ## Useful commands — Clone repository with submodules automatically: `git clone --recursive [email protected]:name/repo.git` — Initialize submodules after regular cloning: `git submodule init && git submodule update` — Make submodules to track their respective remote branches (instead of being in detached HEAD state): `git submodule foreach -q --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)'` — Display status of submodules when `git status` is invoked: `git config --global status.submoduleSummary true` -
Slava Fomin II revised this gist
May 8, 2017 . 1 changed file with 5 additions and 1 deletion.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 @@ -2,7 +2,11 @@ ## Useful commands * Clone repository with submodules automatically `git clone --recursive [email protected]:name/repo.git` * Display status of submodules when `git status` is invoked: `git config --global status.submoduleSummary true` -
Slava Fomin II revised this gist
May 8, 2017 . 1 changed file with 1 addition and 1 deletion.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 @@ -2,7 +2,7 @@ ## Useful commands Display status of submodules when `git status` is invoked: `git config --global status.submoduleSummary true` -
Slava Fomin II revised this gist
May 8, 2017 . No changes.There are no files selected for viewing
-
Slava Fomin II revised this gist
May 8, 2017 . 1 changed file with 7 additions and 1 deletion.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 @@ -1,5 +1,11 @@ # Git submodules best practices ## Useful commands Display status of submodules as well when `git status` is invoked: `git config --global status.submoduleSummary true` ## Additional reading - [Mastering Git submodules](https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407) -
Slava Fomin II created this gist
May 8, 2017 .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,5 @@ # Git submodules best practices Display status of submodules as well when `git status` is invoked: `git config --global status.submoduleSummary true`