ocean
ocean

Reputation: 75

Where, on GitHub, can I see the changes (highlighted in green and red) that I just pushed?

I pushed some changes in my repository at GitHub. everything is working fine but I cant see the exact changes in GitHub highlighted in colors as I know it. I pushed the changes with this command git push origin master What should I do additional to achieve that?

enter image description here

Upvotes: 2

Views: 5533

Answers (1)

jub0bs
jub0bs

Reputation: 66354

My guess is that you're simply looking at the Code page of your GitHub repository, which doesn't show changes introduced by a commit, only the version of the file stored in the tip of the selected branch.

Do the following (I've taken one of my GitHub repositories as an example):

  1. Go back to your main GitHub page.

  2. Click on the repo of interest.

    enter image description here

  3. Click on Code, in the right-hand-side navigation bar.

    enter image description here

  4. Click on the file of interest.

    enter image description here

  5. Click History (next to Raw and Blame).

enter image description here

  1. Click the commit of interest.

enter image description here

You should now be able to see the lines that were added/deleted in that file by that commit in green/red:

enter image description here

Upvotes: 3

Related Questions