gpp execute after cli

This commit is contained in:
Noah Masur
2021-10-21 11:21:31 -04:00
parent b9e248be32
commit a1962afef0
3 changed files with 7 additions and 13 deletions

View File

@ -1,12 +0,0 @@
#!/bin/sh
# Copied from David Pedersen: https://github.com/davidpdrsn/dotfiles/blob/master/bin/git-pp
set -e
git_branch_name() {
val=$( git branch 2>/dev/null | grep '^\*' | colrm 1 2 )
echo "$val"
}
git push --set-upstream origin "$(git_branch_name)"