Using jgit to checkout and modify gist from Kotlin
Kotlin
JGit
gist
Git
As I have discussed previously that gist can be an alternative way to store data online at GitHub and use in your application. However, in order to make changes to data, the gist is required to be cloned, make changes and push back. JGit is a lightweight Java library that can be used to checkout gist and commit and push changes to it. Following code snippet shows how to achieve it in Kotlin.