Skip to content

Updates

How to pull the latest updates?

To pull the latest changes you will need to merge potential conflicts.

Step-by-step Guide

We assume you already cloned your fork locally and have a branch like main or master.

  1. Add the original repo as an “upstream” remote (one-time):
bash
git remote add upstream https://github.com/shipngin/shipngin.git
  1. Fetch upstream changes:
bash
git fetch upstream
  1. Create a temporary branch
bash
git checkout -b shipngin-updates
  1. Update your local default branch (choose merge or rebase):
  • Merge (simple, keeps history as-is)
bash
git merge upstream/main
  • Rebase (linear history on top of upstream)
bash
git rebase upstream/main

Resolve conflicts if prompted, then git rebase --continue. Rebasing “replays” your commits on top of upstream.

  1. Push changes to the temporary branch:
bash
git push
  1. Review and test

Test your application thoroughly to make sure no breaking-changes were introduced.

  1. Merge temporary branch back to main
bash
git switch main
git merge --no-ff upstream-test
git push origin main
  1. Update feature branches (if you have them):
bash
git checkout my-feature
git rebase main