I'm hosting some R/RStudio training sessions and I want to make my directory of programming exercises available to all users. However, I want to be able to update the exercises as we go along, and have the users be able to access those updated changes.
I'm seeking guidance in setting this up. Is git
even the right solution for this? I don't expect my students to be comfortable with git
other than clicking the Pull
button when I announce updates to the curriculum.
On the one hand, I'd like to main read-only repository and have students copy files to a working directory. This is less than ideal, because there is more room for error.
On the other hand, if possible, I'd like to allow students to edit the documents directly in the main repository, and have the pull
operation merge the updated questions/solutions into the work they've already done.
I've tried testing git pull --no-commit
but that simply throws an error when the main file differs from the local file.
I've tried testing git stash
; git pull
; git stash pop
, but the output stacks old on top of new, without merging in line. Which, again, is less than ideal.
question from:
https://stackoverflow.com/questions/65832471/updating-a-central-repository-of-curriculum-exercises 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…