git commit
Saves staged changes to local repository with message
git commit -m 'Initial commit'
Adds all the modified and deleted files to staging area and then saves changes to local repository with message
git commit -a -m 'Initial commit'  /  git commit -am 'Initial commit'
Makes changes to the last commit, adds some files or edits commit message
git commit --amend -m 'Initial commit'
by Valeri Tandilashvili
4 years ago
Git
1
Pro tip: use ```triple backticks around text``` to write in code fences