dotfiles/.local/bin/git-l

3 lines
146 B
Bash
Executable File

#!/bin/sh
git pull --rebase --recurse-submodules --autostash "$@" || (printf "\e[31;1mError - aborting rebase!\e[0m\n" >&2 && git rebase --abort)