Sandia National Laboratories

# Recommended Best Practices

- Merge the content of the devel branch into topic branches “often enough” to avoid future pain associated with merging topic branches back into devel.

- To reduce the chances of merge conflicts on long-running topic branches and leading up to a merge of topic branch changes back into the devel branch (eg before a release), it is a good idea to frequently merge the devel branch into topic branches (including any submodule topic branches). This can be attempted as easily as:

      git fetch
      git merge origin/devel

  If the merge happens cleanly, it is then advisable to compile the code and run the regression tests to ensure there are no regressions (NB: test baselines may have been updated by the merge). If the merge attempt induces conflicts, you can either resolve them now or simply note the expected effort that will be required at a future time and abort the attempt via:

      git merge --abort

## Exceptional service in the national interest

© 2023 National Technology and Engineering Solutions of Sandia, LLC. | Questions & Comments | Privacy & Security

Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering Solutions of Sandia, LLC., a wholly owned subsidiary of Honeywell International, Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA-0003525.