how to commit changes to a branch in git code example
Example 1: git commit current changes to existing branch
git stash
git checkout other-branch
git stash pop
Example 2: how to commit a branch in git
git commit -m "added my github name"
Example 3: how to commit changes in git command
git commit -a