Module 2 Exercise 3: Wikipedia Switcheroo

(Asaolu Elijah) #244


(Kundan) #245

It merged the two together adding the second planet at the end.

(Mayur Patil (मयूर पाटील)) #246

Screenshot of Wikipedia Switcheroo

first second

(BJ Selby) #247

3%20screenshot%201 3%20screenshot%202

When I am in the mars branch, it shows just the marks wiki paragraph. When I switch the the saturn, the readme shows the saturn.

(Ryan B. Harvey) #248

I created the branch add-neptune.

git show master shows the info on Saturn.
git show add-neptune shows the info on Saturn removed, and the info on Neptune added.

Sorry about the fading of the terminal. I use a HUD terminal, and it’s difficult to get a good screenshot before it disappears.


(Pantelis Sopasakis) #249

Having two branches, namely master and feature/kepler-62f, and since I have committed the changes I did in on branch feature/kepler-62f, I can inspect the changes using git diff master..feature/kepler-62f. The output is:

diff --git a/ b/
index 5b7863b..0b2e523 100644
--- a/
+++ b/
@@ -1,3 +1,11 @@
-# Kepler 22b
+# Various planets
+## Kepler 22b
 Kepler-22b, also known by its Kepler object of interest designation KOI-087.01, is an extrasolar planet orbiting within the empirical habitable zone of the Sun-like star Kepler-22. It is located about 638 light-years (196 pc) from Earth in the constellation of Cygnus. It was discovered by NASA's Kepler Space Telescope in December 2011 and was the first known transiting planet to orbit within the habitable zone of a Sun-like star. Kepler-22 is too dim to be seen with the naked eye.
+## Kepler 62f
+Kepler-62f[1][2][4] (also known by its Kepler Object of Interest designation KOI-701.04) is a super-Earth exoplanet orbiting within the habitable zone of the star Kepler-62, the outermost of five such planets discovered around the star by NASA's Kepler spacecraft. It is located about 990 light-years (304 parsecs) from Earth in the constellation of Lyra.
(Federico Bassetti) #250

The new branch (venus in my case) has both paragraphs, since we branched off master.
In the master branch the still contains one paragraph (Mercury in my case).
From master git merge venus will bring the changes to master and will have both paragraphs.

(Cristianjacob1) #251

image image

(Dr. Moore) #252

If I was in the master only one of the paragraphs is in the read me.

(Víctor Ponz Artero) #253

In master, the shows my first planet but in the new branch it shows the second planet, because I’ve overwritten the original post.
But if I append the information of the second planet to the original, the new branch shows information about both planets and master branch only shows the first planet. If we want both to have the same content we must do a merge in the master brach with the new branch.

(Mesfin Diro ) #254


(Mr. Roth-Ritchie) #255

Here is my submission.

(Umangshuklait) #256


(Christophe Troestler) #257


(Othniel Dona Monote) #258


When in my Jupiter branch, only the Jupiter paragraph displays since i replaced the text in the file.

(elverton fazzion) #259


First I added the information about Jupiter, then information about Saturn.

(Mblanqueto) #260

My submission


(Sathish G) #261

The file shows the latest update in the from the new branch we created because we are currently in that new branch. here are my screenshots.

(Purusothaman Gd) #262

I have placed merge exercise screen shot for your referencemerge-2-4-solution

(D Lorenz) #263

Here is the screenshot of my output.

I see both paragraphs, the first one is of Saturn from the first commit on the master branch, the second one, of Jupiter, on the second commit on the second_branch