dakota
  • Getting Started
  • Using Dakota
  • Using Dakota GUI
  • Using External Tools
  • Compiling Dakota
  • Developing Dakota
    • Setup Your Development Environment
    • Git for Version Control
      • What To Do in an Emergency
      • Preliminaries: Setting up Git
      • Getting Dakota Source Code
      • Basic Code Development Workflow
      • Rebase vs. merge
      • Updating Submodules
      • Helpful git commands
      • Revising local commits before pushing
      • Dakota Git Description
      • Recommended Best Practices
      • Repository Browsing
    • Writing Dakota Code
    • Testing Dakota Code
    • Documenting Dakota
    • Dakota Documentation Mechanics
    • Dakota’s Third-Party Libraries
  • Miscellaneous
dakota

Sandia National Laboratories

  • Search Sandia.gov
  • All Sandia Websites
  • Developing Dakota
  • Git for Version Control
  • Recommended Best Practices
  • View page source

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
    
Previous Next

Exceptional service in the national interest

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

U.S. Department of Energy National Nuclear Security Administration

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.