Why does my path change from black to green in Inkscape?

The green line is a path preview and is an indication that the path is still being drawn and is not complete. When the path is complete it will be the stroke color you have set.