Skip to content

Instantly share code, notes, and snippets.

### Creating repositories with submodules
#### Adding a submodule to a Git repository and tracking a branch
If you add a submodule, you can specify which branch should be tracked via the -b parameter of the submodule add command. The git submodule init command creates the local configuration file for the submodules, if this configuration does not exist.
# add submodule and define the master branch as the one you want to track
```
git submodule add -b master [URL to Git repo]
git submodule init
```

Keybase proof

I hereby claim:

  • I am dabitdev on github.
  • I am davidbcn (https://keybase.io/davidbcn) on keybase.
  • I have a public key ASBVI7fEAPP0dpX3aBceEEGypZkwgG4matlcqQve1MUjJgo

To claim this, I am signing this object:

@dabitdev
dabitdev / gist:63d80e6d67b6d2acd6496faafe4e84c4
Last active September 26, 2017 22:11
Karmic integration demo
compile 'com.getsensibill:sensibill-sdk-all:1.11.5'
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.getsensibill.com'
credentials {
username 'karmic'
password 'I will send later'