-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updating existing experiments #59
Comments
Sure! So if there are changes in the experiment repos themselves, you shouldn't need to update here - this is a registry / library of experiments and as long as it's at the same preview address it should work. If you do need to still make a PR to update metadata, let's talk about that. First let me attempt to explain what I think is happening. I suspect the issue you are running into is that you pushed commits to your fork of expfactory/experiments master branch, and thus whenever you check out a new branch it comes with all of the old history (that was squashed and merged). So imagine we have these three commits:
And they are squashed and merged into okay! So here is what I would do.
At this point, your fork will be perfectly inline with expfactory/experiments. From this point on, you are never to update the master branch of your fork unless the commit has come from upstream. You basically want to keep your fork's master in line with the upstream master here. You can do this by first adding the remote named "upstream" (just do this one) $ git remote add upstream https://github.com/expfactory/experiments And then you can update your master to the master here like: $ git checkout master
$ git pull upstream master
$ git push origin master Okay, so the state we are at now has our master branch in sync with the one here! Those are the only operations you should ever do on your master branch. Never commit to it directly. Now let's checkout a new feature branch from that: $ git checkout -b update/experiment-name That branch will be derived from master, and at this point you can copy files from your old fork that you wanted to save, or just make changes as you would, commit and push. Since the commit history is in line with the upstream master, we won't see any extra (missing) commits. Let me know if you have any questions! |
I made some changes to the existing experiments and I'm wondering if I would need to make another pull request. If so, could you provide me wit some instructions? I remember not doing the pull request correctly and I would like to get them right this time.
The text was updated successfully, but these errors were encountered: