This Gemstone details how to contribute to the Rocky Linux documentation project using only the command line interface (CLI). It covers forking the repository the 1st time and creating a pull request.
We'll use contributing a new Gemstone document in our example.
Create a New Branch:
Create a new branch for your contribution. Type:
gitcheckout-bnew-gemstone
Add Your New Document:
Use your favorite text editor to create and edit your new contribution file.
For this example, we'll create a new file named gemstome_new_pr.md and save the file under the docs/gemstones/ directory.
Commit Your Changes:
Stage and commit your new file. Type:
gitadddocs/gemstones/gemstome_new_pr.md
gitcommit-m"Add new Gemstone document"
Push to Your Fork:
Push the changes to your fork/copy of the Rocky Linux documentation repo. Type:
gitpushoriginnew-gemstone
Create a Pull Request:
Create a pull request to the upstream repository.
ghprcreate--basemain--headwsoyinka:new-gemstone--title"New Gemstone: Creating PRs via CLI"--body"Guide on how to contribute to documentation using CLI"
Following these steps, you should be able to successfully create your very first PR and contribute to the Rocky Linux documentation repository entirely via the CLI!