Skip to content

Instantly share code, notes, and snippets.

@BitWizCoder-ol
Last active October 2, 2023 13:33
Show Gist options
  • Save BitWizCoder-ol/83fa00df91d854645fff5cc5be42bef0 to your computer and use it in GitHub Desktop.
Save BitWizCoder-ol/83fa00df91d854645fff5cc5be42bef0 to your computer and use it in GitHub Desktop.
Create and push repo from the command line.
git init
git add .
git commit -m "initial commit"
gh auth login (if not logged in)
gh repo create "$(basename "$PWD")" --public --source=. --remote=upstream --push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment