add and commit git code example
Example 1: git add commit in one command
git commit -am "message"
Example 2: git commit
git add index.html css/styles.css
git add .
git commit -m "Change titles and styling on homepage"
Example 3: how to commit changes in git command
git commit -a
Example 4: git add .
git add <file> or you can do git add -A to add all files