NOC-MSM / pyBDY

pyBDY: a Python based regional NEMO model configuration toolbox.
GNU General Public License v3.0
7 stars 7 forks source link

git untracked files #130

Open rdPatmore opened 1 year ago

rdPatmore commented 1 year ago

This is more for discussion, but thought it could turn into an actionable item.

If you have untracked files with git, the make template-update step doesn't work.

My understanding with git is that if you have several branches at the same time and create a new file or script in one branch, the other branch sees this file but shows it as untracked. Since the above step does not work with untracked files, I had to remove files related to another branch in order push changes of the current branch, or skip the template step.

Am I using git correctly? If I am is there a fix/workaround for this?

Action

jpolton commented 1 year ago

@rdPatmore Perhaps we should add the outputs and benchmark directories in the .gitignore file? This would certainly reduce my number of untracked files, but may or may not address this issue?

rdPatmore commented 1 year ago

Yes, I think this would be useful.

JMorado commented 1 year ago

Seems to me that you are using git correctly.

I have not found yet the best way to deal with this and need to think a bit more about it. You can safely skip this step though, as it is related to the cookiecutter template.