Re:Discussion of the Benefits and Drawbacks of the Git Pre-C...
by indentit on Monday October 20, 2025 @04:09AM
(#45641114)
git itself has no concept of branch policies, it is purely a server side thing. But surely it doesn't really matter what branch you commit to locally, if you can't push it, you haven't done any damage and can just create a new branch and push that instead?
Re:Discussion of the Benefits and Drawbacks of the Git Pre-C...
by AndrewDucker on Monday October 20, 2025 @04:23AM
(#45641247)
Yes, but I'd like to avoid the "create a new branch, switch back to main, reset main back to origin, come back to the new branch" dance. And a git hook does that, but it's not trivial to set up (particularly when there are lots of repos).
I've only encountered those on the server side.