In git rebase -i
you have the usual commands:
- p = use commit
- r = use commit, but edit the commit message
- e = use commit, but stop for amending
- s = use commit, but meld into previous commit
- f = like "squash" but keep only the previous
- x = run command (the rest of the line) using shell
...etc, and with this repository you gain new commands:
- x f = like "squash", but keep only this commit
- x s = like "pick", but put each file into a separate commit
- x mark = insert an empty commit with given message
- x meta = like "pick ", but uses author of
mkdir -p ~/.local/lib &&
git clone https://github.com/Mortal/git-rebase-utils ~/.local/lib/git-rebase-utils &&
cat >> ~/.bashrc <<'EOF'
alias git='PATH=~/.local/lib/git-rebase-utils:$PATH \git'
EOF