I have gone through great difficulties with my first commit to the main project. Mainly because I did all the changes onto a downloaded code and not the cloned from master code. So eventually what worked for me was creating a local branch from the masters remote branch and then copy paste the changed code.
But that resulted in a rather messed up view once I try to compare the two. Since it shows everything as deleted and added.
So my question is: Once I merge my branch with the master at Github and for some reason it doesnt work out well, is there a way to go back to master prior my merge (without big difficulties)
Thank for all answers. Got it figured out thanks to the suggestions and first batch went live :)