{"thread":{"id":"27725","subject":"Indelible actions only","startedAt":"2011-06-28T22:18:36Z","lastAt":"2011-06-28T22:45:19Z","messageCount":2,"participants":["Walther Bauer","Carlos Martín Nieto"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"170648","messageId":"BANLkTinUSoB=GGe+qXpPh+WFgRU2S2jnGw@mail.gmail.com","threadId":"27725","inReplyTo":null,"subject":"Indelible actions only","fromName":"Walther Bauer","fromEmail":"2313218@googlemail.com","sentAt":"2011-06-28T22:18:36Z","receivedAt":"2011-06-28T22:18:36Z","isPatch":false,"sender":{"key":"2313218@googlemail.com","avatar":null},"body":"Hello,\nhow do I configure a git repository in a way, that no modifications of\nexisting history (eg \"commit --amend\", \"branch -d\", \"rebase\") are\nallowed?\nRegards, walther\n"},{"id":"170652","messageId":"20110628224519.GA11733@centaur.lab.cmartin.tk","threadId":"27725","inReplyTo":"BANLkTinUSoB=GGe+qXpPh+WFgRU2S2jnGw@mail.gmail.com","subject":"Re: Indelible actions only","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2011-06-28T22:45:19Z","receivedAt":"2011-06-28T22:45:19Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Wed, Jun 29, 2011 at 12:18:36AM +0200, Walther Bauer wrote:\n> Hello,\n> how do I configure a git repository in a way, that no modifications of\n> existing history (eg \"commit --amend\", \"branch -d\", \"rebase\") are\n> allowed?\n\nFrom the git-config man page\n\n       receive.denyNonFastForwards\n           If set to true, git-receive-pack will deny a ref update which is\n           not a fast-forward. Use this to prevent such an update via a push,\n           even if that push is forced. This configuration variable is set\n           when initializing a shared repository.\n\n\nso set that variable to true. This has to be in the repository you use\nto synchronize. IIRC it can't be avoided locally (but that's not a\nproblem, because you shouldn't be working directly on the public repo\nanyway).\n\nCheers,\n   cmn\n-- \nCarlos Martín Nieto | http://cmartin.tk\n\n\"¿Cómo voy a decir bobadas si soy mudo?\" -- CACHAI\n"}]}