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