Skip to content

How to create a new branch

Laurie Carson edited this page Dec 2, 2018 · 1 revision

1 Using git to work with (develop, test, update) the latest HWRF-WRF code

from the sorc/ subdirectory, clone the working WRF repository using git (move the SVN copy elsewhere for now)

mv WRF WRF.svn
git clone https://github.com/NCAR/HWRFdev WRF
cd WRF
git checkout HWRF

2 Create a new development branch for your work

git checkout -b mybranch

this command starts from whatever code branch you're on --- so be sure to git checkout HWRF first!

the "-b" option tells git to create and then check out a new branch with that name.

3 Push your branch back to github (for backups, and so others can share/review when needed)

git push -u origin mybranch

Clone this wiki locally