DEV Community

Discussion on: Convert existing local project into git project

Collapse
 
madza profile image
Madza • Edited

Simple and straight forward 😉

Tho, I kinda miss creating a new repo without leaving a terminal:
1) smth like git repo create <repo name>
2) asks to login to GitHub if not already
3) asks some questions like setting repo to public/private, create readme, gitignore, add a license, add a description, similar like you would do when running npm init
4) generates a remote URL and adds it to the project automatically

An idea for devs or I miss something and there already is a way?

Collapse
 
dailydevtips1 profile image
Chris Bongers

I think the GitHub CLI comes with that to be honest!
I haven't used it because most my projects for work need a bigger setup than it can do.

Let me try that out and write it down for you

cli.github.com/

Collapse
 
madza profile image
Madza • Edited

You are right, gh repo create [<name>] [flags] 👍
Git CLI docs reference 📚 Thanks 😉