#MITgcm checkin runs
Sometimes we want to store versions of config files for a model run. This uses runname
to make a new branch,
and to make a commit on the main branch. You need to set the model config up to be tracked, of course.
_log.info('doing this via git!!')
os.system(f'git commit -a -m "gendata for {runname}"')
os.system('git push origin main')
os.system(f'git checkout -B {runname}')
os.system(f'git push origin {runname}')
os.system('git checkout main')
Here is an approrpiate .gitignore
:
results
build
archive
reduceddata
slurm*.out
**/__pycache__
.tramp_history
.ipynb_checkpoints