If you want to learn with video and example , here is the nice link to learn.
Here it has been shown that how to publish shape files(point,line and polygon) to geoserver.

https://www.youtube.com/watch?v=FiH4K1NLOZA

Looking for advanced GeoServer tutorials
I was wondering whether there is somekind of reference available with the javascript methods called for each of the buttons in the ribbon. Question behind the question: I want to make a button on a wiki page which says "edit me", without the user having to go to the same button in the ribbon. Functionality should be exactly the same, but I need it on a different place. So what is the easiest way to find out which code the ootb "edit" button calls?
