why we commit in git code example Example: git commit //now commit the code git commit -m "anyMessageYouWantToWrite"