Update cachematrix.R

After "pushing" my modified cachematrix.R code to my github account, I would like to add a commit message from my local console but I have no idea how to use the "git commit" instruction. I always have an error. After reading the github help, I have the same trouble. Please, next time include a tutorial of github if the programming assignments should be sent to it. Am I learning R or github in this course?.