[* black] Thread the shift cable back into the derailleur, pull it tight and tighten the anchor bolt so the cable flattens. Then find a bare stretch of cable and give it a good pull to make sure the cable is seated and has no slack. Then loosen the cable, pull it tight again and re-tighten it.
+
[* black] Now turn your bike upside down and change the gears.