dotfiles/dot_local/bin/executable_xxtip

13 lines
211 B
Bash

#!/bin/sh
current_branch="$(git branch --show-current)"
trap back_to_current_branch 1 2 3 6 15
back_to_current_branch() {
git checkout "$current_branch"
exit 1
}
git fetch upstream master
git rebase master