1function git-bug-push
2    set -l remote (test -n "$argv[1]"; and echo $argv[1]; or git rev-parse --abbrev-ref --symbolic-full-name @{u} | cut -d'/' -f1)
3
4    echo "pushing bugs to '$remote' remote..." >&2
5    git push $remote --prune "refs/bugs/*" "refs/identities/*"
6end