mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 18:05:37 +00:00
13 lines
263 B
Bash
Executable File
13 lines
263 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copied from David Pedersen: https://github.com/davidpdrsn/dotfiles/blob/master/bin/git-pp
|
|
|
|
set -e
|
|
|
|
function git_branch_name {
|
|
val=`git branch 2>/dev/null | grep '^*' | colrm 1 2`
|
|
echo "$val"
|
|
}
|
|
|
|
git push --set-upstream origin $(git_branch_name)
|