commit via git bash 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