git how to cmmit code example Example 1: how to commit a branch in git git commit -m "added my github name" Example 2: how to commit changes in git command git commit -a