git commit

将文件提交到仓库。 更多信息:https://git-scm.com/docs/git-commit.

git commit {{[-m|--message]}} "{{信息}}"

git commit {{[-F|--file]}} {{路径/到/提交信息文件}}

git commit {{[-a|--all]}} {{[-m|--message]}} "{{信息}}"

git commit {{[-S|--gpg-sign]}} {{密钥ID}} {{[-m|--message]}} "{{信息}}"

git commit --amend

git commit {{路径/到/文件1 路径/到/文件2 ...}}

git commit {{[-m|--message]}} "{{信息}}" --allow-empty