I just had the same problem on Stata 18 with a Windows machine. Here is how I managed to download the github command
Code:
local github "https://raw.githubusercontent.com" net install github, from(`github'/haghish/github/master/)
Comment