How to add GitHub repository to PlatformIO platformio.ini lib_deps

You can directly add a GitHub repository as a PlatformIO library dependency by specifying its repository URL in lib_deps in platformio.ini

lib_deps =
    https://github.com/Bodmer/U8g2_for_TFT_eSPI

Note that the GitHub repository must be a valid PlatformIO library i.e. it must have library.json or library.properties in its root directory. https://github.com/Bodmer/U8g2_for_TFT_eSPI is an example for a library that can be included into PlatformIO.