How to Automate a Github Repo With a Line of Code on Linux
Introducing updated version of Gitstart
Gitstart automates creating a Github repository.
For example:
gitstart -d new_repo
This creates .gitignore, a license.txt, a README.md file, run add
, commit
and push
to create a new repo at GitHub.com.
I have explained how to install Gitstart on macOS. Here is how to install Gitstart on a Linux system. I use Ubuntu 20.04 for this example, but the method should be the same for other Linux systems.
Prerequisites
Gitstart requires a YAML processor yq
and Github CLI gh
.
Installing yq
sudo apt install yq -y
See other installation methods for yq
.
Installing gh
Download a deb file from the release page. And use the apt install
command. For example:
sudo apt install ./gh_1.14.0_linux_arm64.deb