Skip to content

Editing with Forks

Jack Leerson edited this page Mar 18, 2021 · 4 revisions

We use forks because they give some benefits when making big changes to a GitHub repository.

Editing with a fork

Note: If you want to add a rule or category/top category, this is the wrong page for you! See How to Create Rules and How to Add and Edit Categories and Top Categories.

To edit a rule with your forked repository, follow these steps:

  1. Go to your forked repository: {User}/SSW.Rules.Content. If you don't have a fork of the SSW.Rules.Content repository, see Fork the repository (One-time setup) section below.

  2. Navigate to a file you want to change. You can use the 'Go to file' button to search for a rule. TODO: Add GoToFile.png

  3. Click on the pencil button to edit the file. TODO: Add EditRule.png

  4. Once you are happy with your changes, scroll to the bottom of the page to the commit box. Add a useful commit message and description, and make sure you are committing directly to the main branch of your forked repository. TODO: Add CommitChanges.png

  5. Merge your changes, by following Merging Your Fork

Fork the repository (One-time setup)

  1. Log in to GitHub, or create an account if you haven't already.

  2. Navigate to SSW.Rules.Content - https://github.com/SSWConsulting/SSW.Rules.Content/

  3. Fork it!
    Fork the repo by clicking on the button in the right
    Figure: Fork this repo!

Forking makes a duplicate of the Rules repository (i.e. SSWConsulting/SSW.Rules.Content to SSWSophieBelle/SSW.Rules.Content). As SSWConsulting/SSW.Rules.Content is a public repository, we do not have permission to write to it directly. This is for security reasons.

  1. Fork it under your own GitHub account: Forking...
    Figure: You'll need to create a GitHub account if you haven't.

  2. You should end up with your own forked repository: Forking...
    Figure: Check that it has YourAccountName/SSW.Rules.Content on the left

  3. IMPORTANT: Enable Workflows in your GitHub Fork
    Forking...
    Figure: Enable Workflows on your GitHub Fork

Clone this wiki locally