- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试运行 gitk在 Windows 上,但控制台给了我:
'gitk' is not recognized as an internal or external command,
operable program or batch file.
但是,我可以做到
> where gitk
C:\Program Files (x86)\Git\bin\gitk
怎么来的?
最佳答案
更新:窃取 OP 的评论:
Thanks for a (lengthy) explanation, the easiest fix for me was to move from the old msysGit (1.9.5) version to the newer "Git for Windows" builds which has a proper Windows wrapper for gitk.
gitk
与大多数 git 命令不同,它是一个调用 Tcl 的 shell 脚本。
如果您检查 gitk
可执行文件本身,它的前几行是:
#!/bin/sh
# Tcl ignores the next line -*- tcl -*- \
exec wish "$0" -- "$@"
(至少在我的 Linux 系统上是这样;gitk
的 Windows 安装程序可能会改变这一点。)
在类 Unix 系统上,第一行称为 "shebang" , 告诉系统调用 /bin/sh
来执行文件而不是直接执行它。
第三行执行wish
命令,将脚本作为Tcl脚本执行。
如果你的 Windows 系统上安装了 Tcl,你应该能够使用像这样的东西将 gitk
作为 Tcl 脚本运行:
C:\> tclsh "C:\Program Files (x86)\Git\bin\gitk"
(免责声明:我没有尝试过。)
您还可以将命令的名称从 gitk
更改为 gitk.tcl
并在 Windows 中设置文件关联以便正确调用它。 (我有点惊讶 Windows git 安装程序没有为你做这件事。)
可以找到有关在 Windows 上运行 Tcl 脚本的更多信息 here .
和this question讨论了从上下文菜单而不是从命令行在 Windows 上调用 gitk
。
关于windows - `gitk` 使用`where`命令找到程序但无法执行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31906647/
当我这样做时 gitk --follow ,左 Pane 列出给定文件名的所有提交。 如果我单击其中一个提交,左下方的 Pane (就在提交/分支/标签列表下方)显示 diff在这个选定的提交和上一
我经常发现自己在 gitk GUI 的下拉菜单中选择 IgnCase。如果 gitk 的搜索默认不区分大小写,对我来说会容易得多。 那么,如何让 gitk 默认情况下查找不区分大小写的字符串(IgnC
我现在已经搜索了两次并进行了大量探索,我承认。对于一个简单的问题,我找不到有效的答案! :( 问题 我的 Mac 上的 gitk 评论没有自动换行并溢出屏幕 示例图 左下方的窗口有提交消息溢出窗口(“
我安装了 Windows 版 Git。当我右键单击一个项目并选择 Git History 时,我会看到 Gitk 窗口,但每次我这样做时都需要设置 View 以查看所有分支。即使当我编辑 View 并
我们开始练习代码审查,在 gitk 中进行代码审查非常痛苦,所以我正在寻找替代方案或 方便解决方法。 gitk 中缺少的是以下能力: 选择提交/提交范围 查看那些提交所触及的文件 选择其中一个文件并查
gitk似乎有很好的界面设计,没什么。我真的很想探索它的源代码。那么我在哪里可以找到它呢? gitk是指查看git存储库历史的人。 最佳答案 当处理开放源代码时,可以从马嘴里获取它-gitk现在是gi
我可以复制gitk左下面板中的源代码吗?有键盘快捷键或其他功能吗? 操作系统:Ubuntu 9.04 桌面/gitk:1:1.6.0.4-1ubuntu2 谢谢。 最佳答案 它应该支持(X剪贴板样式)
我正在将一个 svn 存储库移植到 git(使用来自 https://www.negativetwenty.net/redmine/projects/show/svn2git 的 svn2git)并且
环境:Mac OSX 10.10。当我尝试使用 gitk 时,它显示: Coda-2:~ Coda$ gitk -bash: gitk: command not found 我认为原因是 git 的旧
在 gitk 中有两个面板,顶部面板主要显示提交列表,底部面板显示此提交中的更改。不知何故,自本周以来我无法调整这两个面板的高度,比如让其中一个变大/变小。知道为什么吗? 最佳答案 也许您没有看到精简
我想使用 gitk 比较 2 个分支,而没有其他分支历史的困惑。 我可以通过 gui 实现此目的:View > New view > Branches & tags: v0.8.x v0.9.x 我尝
这个问题在这里已经有了答案: How to view complete commits when tracking history of a single file in Git? (3 个答案)
Gitk 是一个简洁的工具,但它不会显示任何关于您实际位于哪个存储库的视觉线索。当我打开多个 gitk 窗口时,我总是不得不停下来思考每个存储库对应哪个。 据我所知,没有办法为每个 repo 提供不同
我切换到gitg从 gitk 可视化我的 git 树。有一件事我无法忍受。 假设我有两个分支(dev、master),如下所示: 每当我 checkout 到master 时,可视化都会发生变化: 这
我想使用 gitk 查看除给定作者的提交之外的所有提交。类似于以下内容: gitk --author=!joe 这可能吗? 最佳答案 从命令行: gitk --perl-regexp --author
在 Git 工作目录的顶层从命令行运行 gitk 会产生以下错误消息,并且 gitk 无法打开: objc[1031]: Objective-C garbage collection is no lo
如何暂存更改并从 gitk 界面提交它们?它被称为“存储库浏览器”。这是否意味着根本不可能暂存和提交? 最佳答案 gitk 是一个纯粹的浏览器,而不是成熟的 git 客户端。 您可以从 gitk 运行
我使用 Git for Windows 中的 gitk。默认情况下,它似乎以仅显示当前 checkout 分支的 View 打开。 我有一个不同的保存 View ,这是我 90% 时间使用的 View
在 gitk 中单击文件时,会将其与该文件的先前版本进行比较。看起来这些文件与 git diff 进行了比较,并且可以配置非常少的参数(基本上是围绕每个差异查看的行数,“上下文行”)。 是否有可能以某
启动 gitk > View > New View > Select All refs > OK 时出现以下错误: can't read "treediffs(23eda73bba89ba7de960
我是一名优秀的程序员,十分优秀!