TortoiseGit的常见命令行:
# 打开对比工具来显示对应文件的修改
TortoiseGitProc /command:diff /path:"F:\work\test.txt"
# 打开对应文件的提交日志窗口
TortoiseGitProc /command:log /path:"F:\work\test.txt"
# 打开对应文件的blame日志窗口
TortoiseGitProc /command:blame /path:"F:\work\test.txt"
# 打开对应文件的提交窗口
TortoiseGitProc /command:commit /path:"F:\work\test.txt"
# 打开对应文件的还原窗口
TortoiseGitProc /command:revert /path:"F:\work\test.txt"
vscdoe快捷运行插件Command Runner - Visual Studio Marketplace的配置:
// use shortcut Ctrl+Shift+R to select command
"command-runner.terminal.autoClear": true,
"command-runner.terminal.autoFocus": false,
"command-runner.commands": {
"diff": "TortoiseGitProc /command:diff /path:\"${file}\"",
"view log": "TortoiseGitProc /command:log /path:\"${file}\"",
"blame": "TortoiseGitProc /command:blame /path:\"${file}\"",
"commit": "TortoiseGitProc /command:commit /path:\"${file}\"",
"revert": "TortoiseGitProc /command:revert /path:\"${file}\"",
},
网友评论