From: "Carlos Martín Nieto" <cmn@elego.de>
To: Walther Bauer <2313218@googlemail.com>
Cc: git@vger.kernel.org
Subject: Re: Indelible actions only
Date: Wed, 29 Jun 2011 00:45:19 +0200 [thread overview]
Message-ID: <20110628224519.GA11733@centaur.lab.cmartin.tk> (raw)
In-Reply-To: <BANLkTinUSoB=GGe+qXpPh+WFgRU2S2jnGw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 929 bytes --]
On Wed, Jun 29, 2011 at 12:18:36AM +0200, Walther Bauer wrote:
> Hello,
> how do I configure a git repository in a way, that no modifications of
> existing history (eg "commit --amend", "branch -d", "rebase") are
> allowed?
From the git-config man page
receive.denyNonFastForwards
If set to true, git-receive-pack will deny a ref update which is
not a fast-forward. Use this to prevent such an update via a push,
even if that push is forced. This configuration variable is set
when initializing a shared repository.
so set that variable to true. This has to be in the repository you use
to synchronize. IIRC it can't be avoided locally (but that's not a
problem, because you shouldn't be working directly on the public repo
anyway).
Cheers,
cmn
--
Carlos Martín Nieto | http://cmartin.tk
"¿Cómo voy a decir bobadas si soy mudo?" -- CACHAI
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
prev parent reply other threads:[~2011-06-28 22:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 22:18 Indelible actions only Walther Bauer
2011-06-28 22:45 ` Carlos Martín Nieto [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110628224519.GA11733@centaur.lab.cmartin.tk \
--to=cmn@elego.de \
--cc=2313218@googlemail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).