Forrest logo
back to context overview

git-squash

List of commands for git-squash:

  • git-squash:tldr:24ba4 git-squash: Squash the `n` latest commits and commit concatenating all individual messages.
    $ git squash --squash-msg HEAD~${n}
    try on your machine
    explain this command
  • git-squash:tldr:37bb1 git-squash: Squash the `n` latest commits and commit with a message.
    $ git squash HEAD~${n} "${message}"
    try on your machine
    explain this command
  • git-squash:tldr:b4dde git-squash: Merge all commits from a specific branch into the current branch as a single commit.
    $ git squash ${source_branch}
    try on your machine
    explain this command
back to context overview