You’ll want to make sure everything on the curl statement appears as one line without a return it may appear differently here on Medium. Do the same with GH_USER, and provide your GitHub username. I do this for scripts that I use like binaries (they provide a command like a binary), but you can use the file extension if you prefer.īe sure to replace the value of GH_API_TOKEN with your own GitHub token. ![]() ![]() You can call it what you want, but I called mine setup-repo - this will also be the command used to run the script. Using your favorite text editor, create a new file in your home directory. It will also initialize git for our project. ![]() This will allow us to use a single command, from anywhere in Terminal to create a new repo at GitHub. We have our API access token, so let’s create our bash script to create GitHub repos remotely.
0 Comments
Leave a Reply. |