evaluate gpp upstream on cli

This commit is contained in:
Noah Masur
2021-10-06 17:28:19 -04:00
parent 249cbe5889
commit e4b6c3c9ba
2 changed files with 2 additions and 14 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)"