Closed shuetrim closed 2 months ago
The screenshot suggests that your fork was created after the most recent changes to the original repository. There is no need to do a sync operation.
Your codespace is "reimagined carnival". Start that codespace and then, at the terminal, run the command
git pull origin main
If that does not pull down the new experiment scripts, let me know by responding here and we can do a zoom to sort your issues.
Regards
Geoff
Thank you Geoff.
Hi Geoff,
When i run the command "git pull origin main" in the terminal, the new experiment scripts do not seem to be appearing. I have attached a screen shot of what I am actually receiving.
Regards, Karma
What is happening is that you have made some changes to files that would be overwritten if we pulled down the updates.
Here are a couple of git commands to run. These will create a new branch where your changes can be safely stored before going back to the main branch and pulling down the changes. Note that git is a cool and powerful tool for managing different parallel versions of a set of text files. There is lots of help on how to use it and how to understand what you are doing at the G-Cubed documentation website.
At the terminal run:
git checkout -b mychanges
This will create a new branch called mychanges and switch across to that branch.
git add .
git commit -m "Saving my previous changes before downloading updates for midterm essay"
git checkout main
Your changes will no longer be in the codespace main branch because you stored them in the newly created branch above. There will no longer be conflicts.
git pull origin main
Let me know if problems arise.
It does get more complex when you want to integrate the updates with your own changes. I do not think it is necessary but if you want to do that, let me know. It would involve resolving conflicts between the two sources of changes.
Geoff
Hi Geoff,
It worked perfectly. Thanks.
Karma
From Karma:
I would like to seek some clarifications regarding accessing the data for the mid semester paper and also regarding the dataset that was used for today's tutorial.
Mid semester paper: I have followed the steps provided by Geoff in updating the data for the mid-semester paper, however, I could not access it as I am sure I am missing out on something. I created a fork, however, I cannot find the "update branch" icon under sync fork. I have attached a screenshot of the issue.
Today's Tutorial: Will the data that was used for today's tutorial be automatically available on our GitHub, as I can only see and have the old dataset (reimagined carnival) that was used for the previous classes? I have attached a screen shot of the available data currently on my GitHub.
Please let me know if I am missing out on something.