git commit all files code example
Example 1: git commit all changes
#Add all files which have been modified (including tracked and untracked)
git add -A
#Commit changes with a message
git commit -m "some message"
Example 2: list of files in git commit
$ git diff-tree --no-commit-id --name-only -r bd61ad98
index.html
javascript/application.js
javascript/ie6.js
Example 3: how to commit changes in git command
git commit -a