how to git commit 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: git commit
git commit -a -m "The Commit message"
Example 3: how to commit a branch in git
git commit -m "added my github name"
Example 4: git commit
//now commit the code
git commit -m "anyMessageYouWantToWrite"
Example 5: how to commit changes in git command
git commit -a
Example 6: how to revert commit in git
git checkout <commit hash>