Skip to content

Instantly share code, notes, and snippets.

Endrit Bytyqi endrit-b

View GitHub Profile
@endrit-b
endrit-b / git_submodules.md
Created Jan 5, 2019 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation
View git_submodules.md

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@endrit-b
endrit-b / mini_deb_conf.txt
Last active Apr 26, 2018
ElasticSearch 5.x - A practical overview of ES features
View mini_deb_conf.txt
GET /
POST /my-index/my-doc/1
{
"body": "foo"
}
GET /my_index/my_doc/_search
{
@endrit-b
endrit-b / git-submodules.md
Last active Sep 14, 2016
Git submodule operations
View git-submodules.md

To manually add a repo as a gitsubmodule, run this:

git submodule add git@github.com:blla/repo/name.git dest/dir

To commit and push from a master module and its submodules, run followings:

You can’t perform that action at this time.