blob: 52bcaf910945e4c2fb11359d62e33dbd7cb92448 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash -e
# Rewrite the current branch, in place: `git rewrite` - unlike `git
# rebase`, this does _not_ advance the branch onto new upstream
# changes. You can use this to clean up branch history without
# worrying about conflicts with others' changes at the same time.
exec git rebase --interactive --onto HEAD...@{upstream}
|