dotfiles/dot_local/bin/executable_xxtip
2024-02-01 16:02:06 -05:00

13 lines
220 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 upstream/master