Forrest logo
back to context overview

git-commit

List of commands for git-commit:

  • git-commit:tldr:1ecaa git-commit: Commit only specific (already staged) files.
    $ git commit ${filename1} ${filename2}
    try on your machine
    explain this command
  • git-commit:tldr:658f1 git-commit: Commit staged files with a message read from a file.
    $ git commit --file ${path-to-commit_message_file}
    try on your machine
    explain this command
  • git-commit:tldr:6f824 git-commit: Commit staged files to the repository with a message.
    $ git commit --message "${message}"
    try on your machine
    explain this command
  • git-commit:tldr:94000 git-commit: Auto stage all modified and deleted files and commit with a message.
    $ git commit --all --message "${message}"
    try on your machine
    explain this command
  • git-commit:tldr:a5c1b git-commit: Update the last commit by adding the currently staged changes, changing the commit's hash.
    $ git commit --amend
    try on your machine
    explain this command
  • git-commit:tldr:e8859 git-commit: Commit staged files and sign them with the specified GPG key (or the one defined in the config file if no argument is specified).
    $ git commit --gpg-sign ${key_id} --message "${message}"
    try on your machine
    explain this command
  • git-commit:tldr:ff4d6 git-commit: Create a commit, even if there are no staged files.
    $ git commit --message "${message}" --allow-empty
    try on your machine
    explain this command
back to context overview