added a file to index in git without adding a message code example
Example 1: git add all files command
/*to add all the files in staging area at once*/
git add .
Example 2: how to commit changes in git command
git commit -a
/*to add all the files in staging area at once*/
git add .
git commit -a