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

Re: Git log of all (modifying) commands run on a repo?

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Feb 7, 2007, 23:02 UTC
Message-ID
<Pine.LNX.4.64.0702071451030.8424@woody.linux-foundation.org>
In-Reply-To
<Pine.LNX.4.64.0702071441160.8424@woody.linux-foundation.org>
On Wed, 7 Feb 2007, Linus Torvalds wrote:
> 
> Newer gits enable reflogs by default [...]
This, btw, is only true for non-bare ones. 

In particular, if you only _push_ to a repository, it won't have reflogs enabled by default, because pushing is a "bare git" action even if it actually has a working tree (because the push will ignore the working tree and enter the ".git" directory itself).

So even with new git, if you want to have reflogs enabled for shared repositories that people push to (as opposed to the individual *developer* repositories), you need to enable reflogs by hand (either in the git config file, or by just creating the empty log file).

		Linus
Previous: Bill LearNext: Johannes Sixt
Message 24 of 25 in “Git log of all (modifying) commands run on a repo?”
  1. Bill LearFeb 7, 2007
  2. Jakub NarebskiFeb 7, 2007
  3. Bill LearFeb 7, 2007
  4. Jakub NarebskiFeb 7, 2007
  5. Linus TorvaldsFeb 7, 2007
  6. Junio C HamanoFeb 7, 2007
  7. Shawn O. PearceFeb 7, 2007
  8. Linus TorvaldsFeb 7, 2007
  9. Junio C HamanoFeb 7, 2007
  10. Linus TorvaldsFeb 7, 2007
  11. Jakub NarebskiFeb 7, 2007
  12. Johannes SchindelinFeb 7, 2007
  13. Shawn O. PearceFeb 8, 2007
  14. Junio C HamanoFeb 8, 2007
  15. Johannes SchindelinFeb 8, 2007
  16. Junio C HamanoFeb 8, 2007
  17. Johannes SchindelinFeb 8, 2007
  18. Linus TorvaldsFeb 8, 2007
  19. Johannes SchindelinFeb 8, 2007
  20. Shawn O. PearceFeb 7, 2007
  21. Bill LearFeb 7, 2007
  22. Linus TorvaldsFeb 7, 2007
  23. Bill LearFeb 7, 2007
  24. Linus TorvaldsFeb 7, 2007
  25. Johannes SixtFeb 8, 2007

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.