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

I think the CLI is useful for pushing. What do you use to push all the rebased child branches?


My git config for pushing is set to push.default=current. For rebased stacks I have an alias that does this:

    git --config push.default=matching push --force-with-lease --force-if-includes
In other words, I force push all branches that have a matching upstream by changing my config on the fly.




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

Search: