This utility is for creating a new GitHub repo from the command line. I made these because a lot of the time, I have to do things locally and then figure out getting the repo made and synced, etc. Now, I am (and by extension you are) capable of just creating a new repo from content that already exists in a directory.
You do need to have at least one file in the directory to commit. It will always commit
with the comment Initial commit, unless of course you change it. Which you can... well,
you may, idk if you can, that's not really on me, is it? Nope. Not even a little bit.
Change or no change or whatever. idc 🤷🏻♂️
Also, you need to have GitHub CLI installed.
- Copy the newrepo.cmd file to a location in your PATH
- Copy the newrepo.sh file to a location in your PATH (maybe even remove the
.shfile ending?) - Make it executable:
chmod +x newrepo.sh
In a new directory, type: newrepo [reponame]
The reponame argument is optional. If not provided, it will use the cwd as the repo name.