Skip to content

Instantly share code, notes, and snippets.

@Mikulas
Created April 20, 2017 16:02
Show Gist options
  • Save Mikulas/41137138610256c3820e840586c58f53 to your computer and use it in GitHub Desktop.
Save Mikulas/41137138610256c3820e840586c58f53 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# update master
git checkout master
git pull --rebase
git checkout -
# rebase this branch
git rebase -X patience --no-autosquash --autostash origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment