Update Stream
Learn how to update your codebase to get the latest updates and features.
Updating your code to incorporate the latest updates and features from Achromatic is generally possible. However, it's important to note that with each change you make to your application, it becomes more challenging to update your codebase. This is because you are effectively rebasing your code on top of the most recent Achromatic code.
Add the Achromatic repository as a remote
In order to get the latest updates from the repository, do a one-time setup to establish it as a remote:
git remote add upstream https://github.com/achromaticlabs/pro.gitVerify the remote was added successfully:
git remote -vFetch all branches from the upstream remote:
git fetch upstreamCheck out the specific branch and set upstream tracking
git checkout BRANCH_NAMEgit branch --set-upstream-to=upstream/monorepo/next-drizzle-authjsTo confirm that the branch is correctly tracking the upstream branch, run:
git branch -vvYou should see something like this:
* BRANCH_NAME COMMIT_HASH [upstream/monorepo/next-drizzle-authjs] COMMIT_MESSAGEUpdate your repository from the Achromatic repository
git pull upstream monorepo/next-drizzle-authjsIf 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.
Once everything is working fine, don't forget to commit your changes with git commit -m "COMMIT_MESSAGE" and push them to your remote repository with git push origin BRANCH_NAME.