简体   繁体   中英

In Visual Studio Code, how can I get a git log of all git commands executed in the Source Control pane?

In vscode Source Control pane, I would like to get a log of the commands of any applied git command of the running session, including all mouse-click actions.

For example:

Before "Initialize Repository":

在“初始化存储库”之前

After "Initialize Repository", which should log the git init command:

在“初始化存储库”之后

And so on.

The Git Output is available in the Output pane if you select Git instead of Tasks from its toolbar.

You get the same result through ["Source Control" > 3 dots [...] > "Show Git Output"].

(This quotes @PanagiotisKanavos's comment who has not answered after request.)

VSCode 1.64 (Q1 2022) will improve the Git Output pane, by adding timestamp.

Issue 129334 mentioned:

The data emitted into the "Output" windows by the git feature (built-in extension) does not feature timestamps.

This makes it difficult to correlate "challenges" with git activity. The ">" shown in the output does not appear to add a lot of value, timestamps would, an indication whether an activity was initiated and completed, too.

This is fixed by issue 138168 and commit 452e2c5 "Add timestamp and execution time to Git log".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM