Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Discussion: Git workflow for editing pipeline more cleanly #128

Open
amsnyder opened this issue Nov 17, 2022 · 1 comment
Open

Discussion: Git workflow for editing pipeline more cleanly #128

amsnyder opened this issue Nov 17, 2022 · 1 comment

Comments

@amsnyder
Copy link
Collaborator

amsnyder commented Nov 17, 2022

@galengorski

This is a generalized workflow for editing different parts of the pipeline more cleanly so that we can try to avoid multiple people working on the same part of the project. Also it's a place where I can put these git commands so I don't forget them.

  • Working on 03b_model/src/run_model.py on a branch called model_edits and find that a change to 01_fetch/src/fetch_usgs_nwis.py is required
  • on model_edits commit changes to run_model.py
  • switch back to main branch on local
  • create new branch (from the main branch) for small changes to fetch_usgs_nwis.py using git checkout -b fetch_changes
  • make small changes to fetch, commit, push upstream fetch_changes creating new branch in remote repo
  • merge small changes to fetch into remote repo main branch
  • back on local, switch to main branch git checkout main
  • pull the changes from remote repo in local main using git pull upstream main
  • switch back to model_edits branch
  • merge in new changes git merge main -m "merge small change to fetch nwis"
@amsnyder
Copy link
Collaborator Author

@amsnyder

Works for me! Thanks for writing this up @galengorski

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant