git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Making git history strictly time safe

From
J6Jones, Brian P CTR SPAWARSYSCEN-PACIFIC, 63600 <brian.p.jones4.ctr@navy.mil>
Date
May 16, 2012, 22:47 UTC
Message-ID
<2EDEF5ABBE208442B7547C8D36B9D8840C4A03@nawespscez09v.nadsuswe.nads.navy.mil>
I am working towards git adoption on a project. One of the concerns is the fear that git history is not guaranteed to be time safe. How can I configure a git repository so users cannot push or pull changes into it that change it's history? This includes keeping users who work directly in the repository from doing a rebase. 
 
I've found...
http://stackoverflow.com/questions/2085871/strategy-for-preventing-or-catching-git-history-rewrite
 
Which recommends setting...
    
 git config --system receive.denyNonFastforwards true
 git config --system receive.denyDeletes true
 
...Is this enough to guarantee time safe history? 
 
Notes:
1. Only certain process-central repositories would need time safe history. 
2. Developers can change their history provided it does not impact anyone else. I don't care about this case (yet).
 
Brian P. Jones
Senior Software Engineer
Configuration Management
 
Next: Andrew Ardill
Message 1 of 5 in “Making git history strictly time safe”
  1. Jones, Brian P CTR SPAWARSYSCEN-PACIFIC, 63600May 16, 2012
  2. Andrew ArdillMay 17, 2012
  3. Jones, Brian P CTR SPAWARSYSCEN-PACIFIC, 63600May 17, 2012
  4. Andrew ArdillMay 18, 2012
  5. Sitaram ChamartyMay 18, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.