git commit -a
Commits any changes to tracked files in the current repository.
This command automatically stages all changes to tracked files, including modifications and deletions, before performing a commit.
It aids in simplifying your Git workflow by combining git add <filepath>
and git commit
into a single command.
If a new untracked file is introduced, this command won't add it; You'd need to manually add new (untracked) files with git add <filepath>
.
A variation of this would be git commit -a -m 'your message'
which also lets you type a commit message inline instead of opening a text editor session.