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

Re: git command history

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 20, 2019, 00:47 UTC
Message-ID
<xmqq1s32xtg8.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAKcrOwe2ARK4J6YuiXUiVXic=q568VC8JtgWMNs6WEd4hhZs3A@mail.gmail.com>
balaji marisetti <balajimarisetti@gmail.com> writes:
> Can anyone please tell me if there is way to see the command history
> of a local git repo? If there isn't a way, why hasn't the
> command-history feature been implemented?

Another question may be why anybody would want to have such a per repository command history, want Git to spend cycles and disk I/O to store it, and want developers to spend braincycles to think about it.

Depending on where you come from (i.e. if the interest in such a history is coming from corporate management and/or big brother side that wants to learn what its users are doing), I think JeffH's trace2 effort that allows "telemetry" to be collected may be a better match than a command history (e.g. "history | grep git"). Without knowing (not that I am all that interested in) what the motivation of wanting such a thing, it is rather hard to guess, though ;-).

Previous: balaji marisettiNext: Johannes Schindelin
Message 2 of 5 in “git command history”
  1. balaji marisettiMar 19, 2019
  2. Junio C HamanoMar 20, 2019
  3. Johannes SchindelinMar 22, 2019
  4. Jeff HostetlerMar 22, 2019
  5. balaji marisettiMar 25, 2019

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.