Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rebase {
- if [ -z "$1" ]; then
- branch='master'
- else
- branch="$1"
- fi
- commit_sha="$(git merge-base --fork-point $branch)"
- echo "Executing: git rebase -i $commit_sha"
- git rebase -i "$commit_sha"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement