Skip to content

Instantly share code, notes, and snippets.

View endrit-b's full-sized avatar

Endrit Bytyqi endrit-b

View GitHub Profile
@endrit-b
endrit-b / git-submodules.md
Last active September 14, 2016 14:29
Git submodule operations

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:

@endrit-b
endrit-b / mini_deb_conf.txt
Last active April 26, 2018 22:05
ElasticSearch 5.x - A practical overview of ES features
GET /
POST /my-index/my-doc/1
{
"body": "foo"
}
GET /my_index/my_doc/_search
{
@endrit-b
endrit-b / git_submodules.md
Created January 5, 2019 15:36 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

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.