What is rebase command in Git?
The rebase command in Git is used to reply commits on top of another base tip. The rebase helps in keeping the clean and linear project history. This is done by integrating the changes from one branch to another.
How to Use This Tool
Select the options below to customize your Git rebase command. Each option has a brief description to help you understand its purpose:
- Branch: Specify the branch you want to rebase onto the current branch.
- Interactive (-i): Modify, reorder, or squash commits interactively.
- Onto: Move commits from an old base to a new base for a specified branch.
- --root: Rebase onto the root commit of the repository.
- --continue: Continue the rebase after resolving conflicts.
- --abort: Cancel the rebase and restore the branch to its original state.
- --skip: Skip a commit that cannot be applied due to conflicts.
- Preserve Merges (-p): Keep merge commits intact during the rebase.
- Merge Strategy (-m): Use a merge strategy instead of a rebase strategy.
- Quiet (--quiet): Suppress output messages during the rebase process.
- Autosquash: Automatically squash commits marked for squashing during an interactive rebase.
- Edit Todo: Open the rebase todo file to modify commit order or actions.