Skip to content

Submodules and how to update

YaliMao-NOAA edited this page Feb 4, 2025 · 1 revision

UPP is a submodule of WAFS, and GTG is submodule of UPP:
WAFS --> UPP --> GTG

How to update the UPP submodule:

  1. Edit .gitmodules, change branch to the right tag/branch of UPP
  2. Follow the following steps:
git remote add upstream git@github.com:NOAA-EMC/WAFS.git
git clone git@github.com:YaliMao-NOAA/WAFS.git wafs.fork
cd wafs.fork
git fetch upstream
git checkout upstream/develop
git switch -c forGFSv17

sh sorc/checkout_upp.sh
cd sorc/wafs_upp.fd
git remote update
git checkout develop 
cd  ../../

git commit -am "update UPP code revision"
git push origin yourbranch
Clone this wiki locally