Skip to content

Commit f1b0fe4

Browse files
authored
ENH Add command to set upstream for new branches on push
1 parent 4da8b4e commit f1b0fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash/bash-aliases.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ alias giad='git add'
1010
alias gicl='git clone'
1111
alias gic='git commit -m'
1212
alias gica='git commit --amend'
13-
alias gip='git push'
13+
alias gip='git push || git push --set-upstream origin `git branch --show-current`'
1414
alias gil='git pull'
1515
alias gif='git diff'
1616
alias gifs='git diff --staged'

0 commit comments

Comments
 (0)