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 ;-).