Skip to content

Instantly share code, notes, and snippets.

@chrisdaaz
Last active May 14, 2025 20:02
Show Gist options
  • Save chrisdaaz/31400beff47dbdbf33f205b2fee22b47 to your computer and use it in GitHub Desktop.
Save chrisdaaz/31400beff47dbdbf33f205b2fee22b47 to your computer and use it in GitHub Desktop.
Upgrade ColdFront to main branch from v1.1.6 Using Git

Git Remote setup:

Git Branch setup:

  • custom -> This is your default branch, containing your organization's ColdFront codebase
  • main -> This branch tracks the main branch of the ColdFront project
  • staged_upgrade -> This is based on your custom branch, used for resolving merge conflicts

Commands:

# let's assume you only have a `main` branch and a `custom` branch
git checkout main
# pull in the latest changes
git pull upstream main
git checkout custom
# make a new branch off of your `custom` branch
git checkout -b staged_upgrade
git merge main
# resolve any conflicts in your text editor
git commit -m "merge bring in latest changes"

Migrate your database to accomodate changes to models:

coldfront makemigrations --merge
coldfront migrate

Restart your server in your testing environment to confirm everything is working as expected. If everything looks good, merge your staged_upgrade branch into your default branch:

git checkout custom
git merge staged_upgrade
# update your remote
git push origin custom
git branch -d staged_upgrade

Your organization's ColdFront codebase should now have the latest updates from the upstream ColdFront project.

If you want to enable some of the newest ColdFront features, you may need to install newer packages:

pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment