Git 使用 SourceTree 从命令行提交

Git commit from command line with SourceTree

我想要的是这样的:stree /path/to/repo --commit hashcommit? 这可能吗?

不,这目前是不可能的。

当您 运行 带有 --help 选项的 stree 命令时,您将看到可用的命令和选项:

stree --help
Usage: stree [--help] [path]

唯一真正的参数是 path 参数,它允许您指定要打开的存储库,因此在您的情况下是 /path/to/repo。目前没有跳转到特定提交的选项。

您可以通过 Help > Request a New Feature 菜单项请求新功能。