While in beta, GitHub CLI is available for repos hosted on GitHub.com only. It does not currently support repositories hosted on GitHub Enterprise Server or other hosting providers. We are planning support for GitHub Enterprise Server after GitHub CLI is out of beta (likely toward the end of 2020) https://github.com/cli/cli/tree/v0.8.0#availability
$gitaddpublic/index.html$gitcommit-m"first change from mobile pc"[master320bd13]firstchangefrommobilepc1filechanged,1insertion(+)$gitpushorijinmasterEnumeratingobjects:7,done.Countingobjects:100%(7/7),done.Deltacompressionusingupto4threadsCompressingobjects:100%(2/2),done.Writingobjects:100%(4/4),377bytes|377.00KiB/s,done.Total4(delta1),reused0(delta0)remote:Resolvingdeltas:100%(1/1),completedwith1localobject.Tohttps://github.com/JojiOkawa/myportfolio.git67c855a..320bd13master->master
Committing this file to VC is important because it will cause anyone who sets up the project to use the exact same versions of the dependencies that you are using. Your CI server, production machines, other developers in your team, everything and everyone runs on the same dependencies, which mitigates the potential for bugs affecting only some parts of the deployments.