-
Notifications
You must be signed in to change notification settings - Fork 195
Updating your fork
Your fork is a copy of the original repository and it doesn't automatically receive updates when changes are made.
To get the latest changes from SSWConsulting/SSW.Rules.Content into your fork, you will need to sync them manually.
Below are two ways of updating your fork with the original repository.
- Clone the fork to your local machine with git by running the below command, replacing
YOUR-USERNAMEwith your GitHub account name.
git clone https://github.com/YOUR-USERNAME/SSW.Rules.Content
- Add the main branch of SSWConsulting/SSW.Rules.Content as a remote
cd SSW.Rules.Content
git remote add --track main upstream git://github.com/SSWConsulting/SSW.Rules.Content.git
- Pull the latest changes from SSWConsulting/SSW.Rules.Content and merge them into your fork
git fetch upstream
git checkout main
git merge upstream/main
- Push your updated fork to GitHub
git pull
git push
- Done! Your fork is now up to date
-
Navigate to your fork of SSW.Rules.Content

Figure: Check that it has YourAccountName/SSW.Rules.Content on the left and click the "Pull requests" tab on the right -
Click "New pull request"
This screen may look familiar as this is how we normally make a Pull Request from our fork back to the base Repository.
We want to reverse this so that any changes that have been made on SSWConsulting/SSW.Rules.Content are synced with our fork.
To do this we will create a Pull Request back into our fork.

Figure: Click "New pull request"
-
Change the base repository to your fork

Figure: Change the base repository -
Compare the changes across forks
You'll receive a message saying "There isn't anything to compare". This is because our source and destination are the same.
Click "compare across forks"

Figure: Click "compare across forks" -
Change the head repository to SSWConsulting/SSW.Rules.Content (Where we are pulling from)

Figure: Change the head repository -
Click "Create pull request"

Figure: Click "Create pull request" -
Add a name for the pull request and click "Create pull request"

Figure: Add a name for the pull request and click "Create pull request" -
Click "Merge Pull Request"

Figure: Click "Merge Pull Request" -
Click "Confirm merge"

Figure: Click "Confirm merge"

Figure: Pull request is merged
- Congratulations!! Your fork is up to date!

Figure: The fork is up to date
- How to Create Rules
- How to Edit Rules
- How to Rename Rules
- How to Add and Edit Categories and Top Categories
- How to Rename Categories
- Creating your Fork (One time setup)
- Merging Your Fork
- Updating your fork
- Using Markdown
- Editing MDX Components (in GitHub)