The red-giant-branch phase of a star 's life follows the main sequence .
The stages in a star 's life are : nebula , main-sequence star , red giant and either white dwarf followed by black dwarf , neutron star or black hole .