Reputation: 1345
A week ago, a friend sat down and tutored me through using Git. It was really helpful, and I cannot remember 60% of it. However, my Mac terminal remembers the history of the commands, which would fill in most of what I forgot.
It's all there. I can press 'up' to cycle through the history. Is there a way to dump this out to a file?
Upvotes: 2
Views: 1822
Reputation: 553
The history
command will output your command history. Combining with grep
(a la history | grep git
) should give you what you want.
Upvotes: 5