Gist is a nice service. We can write code so easily and manage files as repository.
But bad points are …
- Many repository
- Gist destributes random hash to perticular gists (repositories).
- So difficult to find or remember contents as repository.
So let's manage them in one normal Github repository.
Example:
https://github.com/YumaInaura/gist
From web
Distributed Gist URL example:
https://gist.github.com/YumaInaura/8d52e73dac7dc361745bf568c3c4ba37
Command:
git submodule add [Gist URL] [Some directory name easy to remember]
Example:
git submodule add https://gist.github.com/YumaInaura/8d52e73dac7dc361745bf568c3c4ba37 understandhing_channel_buffer
Then we can manage "submodule managed repositories".
We can find link from aggregation repository to gist.
Example page:
https://github.com/YumaInaura/gist/tree/master/go
Use --recurse-submodules
option then we can clone all submodule managed files.
Exmaple:
git clone --recurse-submodules https://github.com/YumaInaura/gist
Careful, If include many submodules, then many clones happens.