Hey @mozzadrella! My Module 2 Exercise 2.2 Submission
OK, so here’s my screenshot for 2.2
I actually did the GitHub.com GUI part last week but failed to make the screenshot . I just deleted and then re-created my local repository, then added the remote (from last week) and fetched that.
I don’t quite see the point of
fetch though. I see that “the objects are transferred”, but I don’t actually see the files in my filesystem… What is the point of
fetch? And in what circumstances should it be used above
I’m seeing the difference between
pull in the following submodules , what I still don’t quite see is the need to use only
fetch… It will come eventually, I guess!
@MrAllatta were you able to bring commits back down via fetch (or push, if you got that far in the training)?
Spoke too soon
hiya @minneapolis-edu the tidea here is to add to the example list of the readme with learning objectives and bring those changes back down to your machine
Nice that you got your remote addresses squared away
@mariojp were you able to fetch or pull changes back down to your local machine?
thank you for this feedback.
You can find all of your repositories in the Campus Advisors organization.
@mberasategi pull is two parts–a fetch command, and then a merge commit. And fetch shows that the objects are transferred over the wire, but not merged into the project history.
In short, how the add up to the .
Hi @Oscar-Oliveira! Trying to figure out what’s going on here. Were you able to debug?
The first time I tried to post to the instructions, the second time worked fine.
Hiya! You are ahead of the curve (feel free to blur out your email if you’d like that to be private).
I have done a fetch from the Github Repo with the empty readme.md file. Something was downloaded. But the readme.md is not in the local repo. Is this correct? and why is this the case?
fetch doesn’t bring master up to date, it just copies the changes down to the local repository. you need a merge to get your current master to match what you just fetched … I expect 2.3 will take us there, but if you do a “git pull” instead of a “git fetch”, it will do the merge as well as the fetch. The 2.2 video explains this subtlety of fetch, but doesn’t go into how to make the merge happen. … I hope this helps.
That was fun … I was at a bit of a loss of what the week 1 assignment was, until I read through this group and saw mozzadrella’s note that the idea was to edit the file on github to add the objectives. That led me to an interesting “bug-ette” or maybe feature, because this is what I did:
- made an empty README.md locally
- made an empty repo on github
- connected the two and pushed my empty README.md up to github
at this point github told me I didn’t have a README.md still even though the file was right there! so I tried to create one, since it said I needed to, but when I attempted to save it, it wouldn’t let me, get this, “because I already had one!” after I got over that, I continued …
I edited the empty one, and sure enough, once I committed that, the button to create one went away. Not sure how I feel about that, but it is an edge case. @mozzadrella, is it worth reporting somewhere official? I feel rather pleased to have found this little corner issue in the github behaviors but maybe that’s because it’s late…
then the screenshot shows you the rest: I fetched, and then I pulled to get it to merge (because it bothered me we left it in a fetch state … but I bet 2.3 is going to make me regret stepping forward into that)
Thank’s a lot for explaining