mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 17:04:54 +00:00
b9e248be32
This reverts commit e4b6c3c9ba
.
13 lines
260 B
Bash
Executable File
13 lines
260 B
Bash
Executable File
#!/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)"
|