logoNotionDir
Working with the codebase

Update the codebase

Learn how to update the NotionDir codebase.

NotionDir supports updating your codebase to get the latest features and improvements. However, please note that as you make more customizations to your application, updating may become more complex since it involves rebasing your code on top of the latest NotionDir codebase using Git. This means you'll need to carefully resolve any merge conflicts while preserving your custom changes.

Before proceeding with an update, ensure your git repository is clean with no uncommitted changes.

Add the NotionDir upstream remote

First, you'll need to add the NotionDir repository as an upstream remote to your git repository. Run this command in your terminal:

git remote add upstream https://github.com/futantan/notiondir-template.git

If you have done this in the setup before, you can skip this step.

Update your repository from the NotionDir repository

git pull upstream main --allow-unrelated-histories --rebase

If you have any merge conflicts, you will have to resolve them manually. If you are not sure how to do this, please refer to the Git documentation.

On this page