To commit your staged files using Git, enter the following command in your terminal:
git commit -m "Your commit message"
Replace “Your commit message” with what you want your message to be. The message should summarize what has changed and be succinct.
To check to see if the commit was successful, enter the following command in your terminal:
Run the command from the Summary to commit your changes. Use
git log to check the commit.
Recording Changes to the Repository from the Pro Git book (see the section called “Initializing a Repository in an Existing Directory”)
Viewing the Commit History from the Pro Git book