Module 2 Exercise 1: Network activity


(Amy Dickens) #103

Hi @blmassingill :wave: - Thank you for your feedback!

I have a couple of answers for your questions :sparkles:

Exactly - you can add anything in here. Really what we are trying to see is how Git works when we have material we want to share and update between a local repository and a remote repository on GitHub. :sparkling_heart:

The reason we highlight git fetch here is to show that it does exactly what you have discovered. It only fetches the file from the remote, it does not incorporate them into your working directory and to do that you’re right in thinking you would need to perform git merge.

You might have come across the command git pull before - this performs both actions (fetch and merge) in one.

At the level of “trees” and “blobs” Git can seem very abstract - so do not worry if some parts don’t quite make sense yet!

Keep up with the training and let us know how you get on :sparkles:


(Amy Dickens) #104

Hi @62ramya :wave:

We seem to be missing parts of the exercise here - namely the git fetch to bring changes down from your remote repository.

See the instructions from the original post here:

  • On GitHub.com, upload your first week’s assignments to the “Individual” repository.
  • Use the command line to bring the commits back down to your local repository.

Would you mind posting a new screenshot showing these parts of the exercise? :sparkles:


(Acke9387) #105

Hey Amy,

Thanks for reaching out! I did get it to work, however I was having issues with getting my credentials setup since I have two-factor auth enabled since my organization had required it when I was working as a developer for them and I did not get it on the first pass. Since I had those issues, there were too many lines to get everything in one screenshot. Sorry I must have scrolled up before I took the screenshot. This was awhile ago so I do not have the window open anymore to take a new screenshot. I can redo it if you want, but it will probably be a few more weeks until I go and work on the github education training.

Best,

Adam


(Amy Dickens) #106

Thank you for your feedback! :pray:

Great work around on getting the exercise completed :tada:


(Amy Dickens) #107

Hi @khachiman :wave:

We seem to be missing the git fetch part of this exercise.

See the instructions from the original post:

  • On GitHub.com, upload your first week’s assignments to the “Individual” repository.
  • Use the command line to bring the commits back down to your local repository.

Could you update us with a screenshot that also shows these steps? :sparkles:


(Amy Dickens) #108

Nice work :metal: :sparkles:

In future - can you try capturing the steps up to the final part of the exercise in your screenshot.

This just helps us get more of an overview of your progress and how you got to this point. :sparkling_heart:


(Amy Dickens) #109

Hi @sjha2000 :wave:

You seem to be missing the last few steps of the exercise in your screenshot.

Would you mind completing these steps:

  • On GitHub.com, upload your first week’s assignments to the “Individual” repository.
  • Use the command line to bring the commits back down to your local repository.

and reposting a screenshot with the results? :sparkles:


(Amy Dickens) #110

Hi @Pawank221 :wave:

Great to see you got the remotes set up and working. Though it looks like you are missing the last two parts of the exercise from your screenshot here:

  • On GitHub.com, upload your first week’s assignments to the “Individual” repository.
  • Use the command line to bring the commits back down to your local repository.

Would you mind completing these and then sharing another screenshot of the results? :sparkles:


(Amy Dickens) #111

Hi @mhudnell - is there a reason that you used git pull instead of the git fetch ?

Both commands work to grab changes from the remote but git pull also performs a merge which brings the changes into our local directory.

Try making another change and then running git fetch to see the difference in the output here. Once you’ve done this would you mind sharing a new screenshot showing the difference? :sparkles:


(Amy Dickens) #112

Hi Adam

I totally understand - pro-tip you can use CTRL + L to clear your terminal screen (getting rid of whatever is flooding the top and make for nicer screenshots).

I also recently discovered on a Mac you can use CMD + L to clear the last line (which is nice for hiding small processes that may have a large output).

Don’t worry about re-doing the exercise just make sure in future you capture every stage, it helps us in the case of needing to problem solve. :sparkling_heart:

Good luck with the rest of the training - we are here to help if you have any questions! :sparkles:


(Eduardo Gutierrez) #113

Some problems i had but i can resume with this two screenshots.

In my repo i had a README.md file with some content ( you can read the content in the second screenshot), so i uploaded it to my github repo ( created a new one called individual-work) and then edit and add some changes to the file. You can view the repo and the README.md modified.

Then getting fetch ( from terminal git fetch) did show some changes but not in the file, i had to git pull origin master to update my local file with the changes made in web repository. So you can see that my local README.md has been updated with the content or changes made in the web repository.


(Vincent Sijben) #114

So, first of all, I’m glad I can learn things from you @mozzadrella :slight_smile:

Second, these feedback items are from march this year, and yet, it seems they arent considered or taken into account updating the course. I feel so lost when completing one part. The youtube video suddenly stops, and one must continue watching another (ok i get that, but it was nice to ‘end’ the first one telling what a user must do next, even if that could be consider ‘obvious’).

In Exercise: Work with remotes at item 3 one must upload a file through github. I cant seem to find how i do that when i do not choose to insert a readme.md first. It only gives me the upload button once i have a readme file? Am I doing something wrong?


(Ygor Canalli) #115



(Max Hudnell) #116

2_2

The new screenshot! Fetch shows the actual number of objects which are being retrieved from origin, but the changes are not merged into my local master branch.


(Suehring Uwsp) #117


(Sanoakira) #118


Thanx for your advice, I tried again here.


(Adarshreddy adelli) #119


(Vasil Markov) #120


(Gitesh) #121


(Diego Fernando Marin) #122

Module 2 Exercise 2 (Fetch) done!