Create repo on GitHub from terminal Install github CLI with brew install gh or scoop install gh for mac and win respectively If scoop is not installed run Set-ExecutionPolicy RemoteSigned -scope CurrentUser & iwr -useb get.scoop.sh | iex Initialize the local directory as a Git repository git init -b main Stage and commit all the files in your project git add . && git commit -m "initial commit" push it into new repository on GitHub with gh repo create on Win for me it works only in powershell terminal, not in bash