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.
- Add the original repo as an “upstream” remote (one-time):
bash
git remote add upstream https://github.com/shipngin/shipngin.git- Fetch upstream changes:
bash
git fetch upstream- Create a temporary branch
bash
git checkout -b shipngin-updates- 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/mainResolve conflicts if prompted, then git rebase --continue. Rebasing “replays” your commits on top of upstream.
- Push changes to the temporary branch:
bash
git push- Review and test
Test your application thoroughly to make sure no breaking-changes were introduced.
- Merge temporary branch back to main
bash
git switch main
git merge --no-ff upstream-test
git push origin main- Update feature branches (if you have them):
bash
git checkout my-feature
git rebase main