Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Slightly off topic

> get yelled at about --set-upstream, and copy/paste that command :-)

But you might like this https://git-scm.com/docs/git-config#Documentation/git-config...



I just added an alias

  alias gpush='git push --set-upstream origin $( git branch --show-current )'


`git push -u origin HEAD` also works!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: