3 ms·
"Git", (really, whatever git server you are using for your publicly accessible repo) only allows you to do that if you allow it to allow you to do that. Reject
by Crito 13y ago
"Git", (really, whatever git server you are using for your publicly accessible repo) only allows you to do that if you allow it to allow you to do that. Rejecting non-fast-forward commits is standard practice in every git shop that I've worked in.
- davvid 13y agoIt's also the default these days. $ git init --bare --shared foo.git Initialized empty shared Git repository in foo.git/ $ cat foo.git/config # ... [receive] denyNonFastforwards = true
- anton_gogolev 13y agoI love just how persistent is Git in confusing users. Double negative, anyone?
- SoftwareMaven 13y agoWe use git rewriting extensively and do allow non-FF commits. We also have process and tools in place such that master is held sacred (and our live branch is untouchable). Every once in a blue moon, a master branch will get a non-FF, and our tooling is such that we make sure everyone knows it happened. However, we are a small team consisting of mostly Linux kernel developers, so that may influence the level of trust we put in not screwing things up. We also work pretty much independently; were that not the case, this would get ugly.
- JoshTriplett 13y ago> However, we are a small team consisting of mostly Linux kernel developers What team is that, and what are you working on?
- SoftwareMaven 13y agoOracle Ksplice[1]: patches the kernel with security updates without rebooting. 1. http://www.ksplice.com/ http://www.ksplice.com/