$ pkg install github
Says:
Reading state information... Done
E: Unable to locate package github
You need to install git
not github
. Github.com is a git hosting, one of many (though one of the most famous).
From https://wiki.termux.com/wiki/Development_Environments:
pkg up
pkg install git