In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
| #!/usr/bin/env python | |
| """ | |
| Usage: vcprompt [options] | |
| Version control information in your prompt. | |
| Attribution: possible original author <Matthias Riegler https://github.com/xvzf>? | |
| Options: | |
| -f, --format FORMAT The format string to use. |
| #!/bin/bash | |
| HOST=$(hostname) | |
| function install_postfix() { | |
| echo | sudo debconf-set-selections <<__EOF | |
| postfix postfix/root_address string | |
| postfix postfix/rfc1035_violation boolean false | |
| postfix postfix/mydomain_warning boolean | |
| postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |