Is there a way I can keep track of commands I used in Git under Windows? I want to view all the commands that I have applied on my repository.
I want to be able to go back through the command history and figure out the command that caused the problem if one occurred.
Seeing the history of commits would be one thing, but for keeping a history of other actions such as creating a branch or adding a remote, are these tracked?
解决方案
git will show changes in commits that affect the index, such as git rm. It does not store a log of all git commands you execute.
However, a large number of git commands affect the index in some way, such as creating a new branch. These changes will show up in the commit history, which you can view with git log.
However, there are destructive changes that git can't track, such as git reset.
So, to answer your question, git does not store an absolute history of git commands you've executed in a repository. However, it is often possible to interpolate what command you've executed via the commit history.