git commit using command line code example Example 1: git commit git commit -a -m "The Commit message" Example 2: how to commit changes in git command git commit -a