  from selfdrive.manager.process_config import managed_processes
  from selfdrive.athena.registration import register, UNREGISTERED_DONGLE_ID
  from system.swaglog import cloudlog, add_file_handler
  from system.version import is_dirty, get_commit, get_version, get_origin, get_short_branch, \
                                terms_version, training_version
  
  
  sys.path.append(os.path.join(BASEDIR, "pyextra"))
  
  
 
</s> remove       r = [
        run(["git", "reset", "--hard", "@{u}"], OVERLAY_MERGED, low_priority=True),
        run(["git", "clean", "-xdf"], OVERLAY_MERGED, low_priority=True ),
        run(["git", "submodule", "init"], OVERLAY_MERGED, low_priority=True),
        run(["git", "submodule", "update"], OVERLAY_MERGED, low_priority=True),
 </s> add       cmds = [
        ["git", "reset", "--hard", "@{u}"],
        ["git", "clean", "-xdf"],
        ["git", "submodule", "init"],
        ["git", "submodule", "update"], </s> remove   new_version: bool = cur_hash != upstream_hash
 </s> add   new_version = cur_hash != upstream_hash
                              terms_version, training_version, is_tested_branch
  from selfdrive.manager.process_config import managed_processes
  from selfdrive.athena.registration import register, UNREGISTERED_DONGLE_ID
  from system.swaglog import cloudlog, add_file_handler
  from system.version import is_dirty, get_commit, get_version, get_origin, get_short_branch, \
                              terms_version, training_version, is_tested_branch
  
  
  sys.path.append(os.path.join(BASEDIR, "pyextra"))
  
  
keep keep keep keep replace keep keep keep keep keep
 updated: add branch switching (#25200)

* switch param

* add to ui

* fix that

* fetch for new branch

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/manager/manager.py