Skip to content

Instantly share code, notes, and snippets.

@vitalfadeev
Last active November 8, 2023 06:48
Show Gist options
  • Select an option

  • Save vitalfadeev/baf4bef73f50dece2bace65fe01fadfe to your computer and use it in GitHub Desktop.

Select an option

Save vitalfadeev/baf4bef73f50dece2bace65fe01fadfe to your computer and use it in GitHub Desktop.
Create new repo on github.com from local folder and upload.
#!/bin/sh
# gh auth login
git init
git add -A .
git commit -m "First commit"
NAME=`basename $PWD`
gh repo create "${NAME}" --source=. --public --push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment