git commit
Using git commit
is how you create a commit from the staged changes in your git repository.
There’s not much to the command itself, but when committing, you’ll need two write a commit message. There are also a few practices with your commits that are worth mentioning:
- Always commit atomically as best you can
- Be sure to write useful commit messages