Revert "evaluate gpp upstream on cli"

This reverts commit e4b6c3c9ba.
This commit is contained in:
Noah Masur
2021-10-21 11:17:51 -04:00
parent e4b6c3c9ba
commit b9e248be32
2 changed files with 14 additions and 2 deletions

12
bin/git_set_upstream Executable file
View File

@ -0,0 +1,12 @@
#!/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)"