- 
      
 - 
        
Save moritzebeling/f5ef9ff2250ca4ce90db60f6e2289ced to your computer and use it in GitHub Desktop.  
Revisions
- 
        
moritzebeling revised this gist
Jul 24, 2020 . 1 changed file with 2 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 @@ -1,3 +1,5 @@ # Gitting around To clone a repo with all its submodules: - `git clone --recursive [git://url]`  - 
        
moritzebeling revised this gist
Jul 20, 2020 . 1 changed file with 2 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 @@ -19,8 +19,8 @@ Removing a submodule: - Run `git commit -m "Removed submodule [Name of Module]"` to commit the change - Delete the now untracked submodule files `rm -rf [path/to/submodule]` Load remote branches: - `git fetch origin` Kirby meets Git <https://getkirby.com/docs/cookbook/setup/git>  - 
        
moritzebeling revised this gist
Jul 20, 2020 . 1 changed file with 3 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 @@ -19,5 +19,8 @@ Removing a submodule: - Run `git commit -m "Removed submodule [Name of Module]"` to commit the change - Delete the now untracked submodule files `rm -rf [path/to/submodule]` Load remote branches `git fetch origin` Kirby meets Git <https://getkirby.com/docs/cookbook/setup/git>  - 
        
moritzebeling revised this gist
Mar 1, 2020 . 1 changed file with 3 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 @@ -4,6 +4,9 @@ To clone a repo with all its submodules: Add a submodule - `git submodule add [git://url] [path/to/submodule]` Load submodules if they weren’t when cloning - `git submodule update --init` Update all submodules: - `git submodule foreach git pull origin master`  - 
        
moritzebeling revised this gist
Jun 4, 2019 . 1 changed file with 4 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 @@ -14,4 +14,7 @@ Removing a submodule: - Run `git rm --cached [path/to/submodule]` (no trailing slash) - Run `rm -rf .git/modules/[path/to/submodule]` (no trailing slash) - Run `git commit -m "Removed submodule [Name of Module]"` to commit the change - Delete the now untracked submodule files `rm -rf [path/to/submodule]` Kirby meets Git <https://getkirby.com/docs/cookbook/setup/git>  - 
        
moritzebeling revised this gist
Jun 4, 2019 . 1 changed file with 3 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 @@ -1,6 +1,9 @@ To clone a repo with all its submodules: - `git clone --recursive [git://url]` Add a submodule - `git submodule add [git://url] [path/to/submodule]` Update all submodules: - `git submodule foreach git pull origin master`  - 
        
moritzebeling renamed this gist
May 24, 2019 . 1 changed file with 6 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,10 @@ To clone a repo with all its submodules: - `git clone --recursive [git://url]` Update all submodules: - `git submodule foreach git pull origin master` Removing a submodule: - Delete the relevant section from **.gitmodules** - Stage the .gitmodules changes with `git add .gitmodules` - Delete the relevant section from **.git/config**  - 
        
moritzebeling revised this gist
May 22, 2019 . 1 changed file with 2 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 @@ -1,9 +1,9 @@ To remove a submodule you need to: - Delete the relevant section from **.gitmodules** - Stage the .gitmodules changes with `git add .gitmodules` - Delete the relevant section from **.git/config** - Run `git rm --cached [path/to/submodule]` (no trailing slash) - Run `rm -rf .git/modules/[path/to/submodule]` (no trailing slash) - Run `git commit -m "Removed submodule [Name of Module]"` to commit the change - Delete the now untracked submodule files `rm -rf [path/to/submodule]`  - 
        
moritzebeling revised this gist
May 22, 2019 . 1 changed file with 7 additions and 7 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 @@ -1,9 +1,9 @@ To remove a submodule you need to: - Delete the relevant section from **.gitmodules** file - Stage the .gitmodules changes with `git add .gitmodules` - Delete the relevant section from **.git/config** - Run `git rm --cached [path/to/submodule]` (no trailing slash) - Run `rm -rf .git/modules/[path/to/submodule]` (no trailing slash) - Commit `git commit -m "Removed submodule [Name of Module]"` - Delete the now untracked submodule files `rm -rf [path/to/submodule]`  - 
        
myusuf3 created this gist
Nov 3, 2014 .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 @@ To remove a submodule you need to: - Delete the relevant section from the .gitmodules file. - Stage the .gitmodules changes git add .gitmodules - Delete the relevant section from .git/config. - Run git rm --cached path_to_submodule (no trailing slash). - Run rm -rf .git/modules/path_to_submodule (no trailing slash). - Commit git commit -m "Removed submodule <name>" - Delete the now untracked submodule files rm -rf path_to_submodule