简体   繁体   English

检查IntelliJ运行的确切Git命令

[英]Check the exact Git command run by IntelliJ

I'ld like to know if there is a way to see the exact Git commands run by IntelliJ. 我想知道是否有办法看到IntelliJ运行的确切Git命令。

Like when I do an Update Project , with the rebase and stash options. 就像我使用rebase和stash选项进行Update Project一样。

Thank you :) 谢谢 :)

I'm using rubymine, if it's the same you should get a tool window for version control with all the command that were run and the output. 我正在使用rubymine,如果它是相同的你应该得到一个tool window用于版本控制与运行的所有命令和输出。

tools window = The small panels on the side and bottom, like project view , changes , to do etc. 工具窗口=侧面和底部的小面板,如project viewchangesto do等。

To open it ( if it's not already open ) try View => Tool Windows => Version Control . 要打开它(如果它尚未打开),请尝试View => Tool Windows => Version Control

Since IntelliJ Idea GIT plugin uses command line git utility, you may temporarily replace it with a simple shell wrapper which would log every invocation into a file (assuming that the real git binary is saved as /usr/bin/git.bin : 由于IntelliJ Idea GIT插件使用命令行git实用程序,您可以暂时将其替换为一个简单的shell包装器,它将每个调用记录到一个文件中(假设真正的git二进制文件保存为/usr/bin/git.bin

#!/bin/sh

echo "Invoked git $@" >>/tmp/git.log
exec /usr/bin/git.bin "$@"

Also you may simply read a good GIT documentation, eg http://git-scm.com/documentation 您也可以阅读一份好的GIT文档,例如http://git-scm.com/documentation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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