Create Repository from Current Directory with the GitHub CLI

gh repo create your-repo --public --source=. --push


  1. Make sure you have the GitHub CLI installed and you are signed in
  2. Run the command above to create a public repo from the current directory and push


Andrew Mason's profile image

Hey, I'm Andrew 👋

I'm a senior product engineer at Podia, co-host of Remote Ruby and Ruby for All, and co-editor of Ruby Radar. You can explore my writing, learn more about me, or subscribe to my RSS feed.

Page Info

30 March 2022
30 March 2022
Reading Time:
1 min read