Commands
but rub
Combine two entities together to perform an operation
Usage
Description
The rub command is a versatile operation that combines two entities together to perform various operations depending on the types of entities provided.
Supported Operations
| Source | Target | Operation |
|---|---|---|
| File | Commit | Amend |
| Branch | Commit | Amend |
| Commit | Commit | Squash |
| File | Branch | Assign |
| Branch | Branch | Assign |
| Commit | Branch | Move |
Arguments
<SOURCE>
The source entity to combine.
- Type: String
- Required: Yes
<TARGET>
The target entity to combine with the source.
- Type: String
- Required: Yes
Examples
Amend a file to a commit:
Squash two commits:
Assign a file to a branch:
Move a commit to a different branch:
Last updated on