git check in code example
Example 1: how to commit a branch in git
git commit -m "added my github name"
Example 2: how to switch branches in git
git checkout [branch name]
Example 3: how to commit changes in git command
git commit -a
git commit -m "added my github name"
git checkout [branch name]
git commit -a