Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Handy github commands

Create new git with github repo from command line

gh repo create --source=. --public
git init -b main
git add . && git commit -m "initial commit"
git remote add origin<REMOTE_PATH>.git
git push 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment