logoalt Hacker News

pksunkaratoday at 5:00 AM1 replyview on HN

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


Replies

fphilipetoday at 5:07 AM

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.