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

I also can't think of a situation where you'd want to force push to a branch that others might be committing to.


If they're not committing to it, --force-with-lease is the same thing as --force, so it doesn't cost you anything.


Costs ten keystrokes by my count. But it's not the keystrokes that trouble me, it's the idea that one of my co-collaborators might use this feature to "safely" rewrite history in a branch I'm also using. "Safely" being relative, since the rest of the collaborators will have to force pull that branch later, and rebase their pending changes.

By my reckoning, rewriting history just isn't a reasonable decision in shared branches.




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

Search: