gitk

Gitk does not show HEAD of master?

大憨熊 提交于 2019-12-13 21:21:41
问题 This is on Ubuntu 14.04, git version 1.9.1 (same for gitk ). I'm doing this: $ cd /tmp $ git clone https://github.com/underdoeg/ofxLibRocket.git ofxLibRocket-git Cloning into 'ofxLibRocket-git'... remote: Counting objects: 1013, done. remote: Total 1013 (delta 0), reused 0 (delta 0), pack-reused 1013 Receiving objects: 100% (1013/1013), 16.85 MiB | 326.00 KiB/s, done. Resolving deltas: 100% (631/631), done. Checking connectivity... done. $ cd ofxLibRocket-git $ git status On branch master

How do I remove all my mysterious “index on” and “WIP on” commits?

拟墨画扇 提交于 2019-12-12 11:55:01
问题 I was just called upon to fix a bug in my application. I stashed up my current work and checked out my newest version tag. I promptly noticed that was a mistake, as the Git message told me that my commits wouldn't be saved, so I checked out master instead. But before I did that, I had already popped my stash, the re-stashed: $ git checkout v1.6.0 $ git stash pop $ # Oops, I'm not supposed to be here $ git stash $ git checkout master $ git stash pop Then I fixed the bug, committed and created

Gitk: Setting “Ignore space change” option to be true by default

▼魔方 西西 提交于 2019-12-12 09:35:50
问题 Is this possible in any way? I have tried git config --global alias.diff 'diff -b -w' but unfortunately that was not the solution. 回答1: Note: Now (after Sept 2014) update gitk config_variables and add ignorespace https://github.com/git/git/commit/9fabefb1f3f658e77eb18afa3f95efe1a0ee8d0d All these are flushed to .gitk file. 回答2: It's a bit old but I found that question the other day googling, and the already accepted answer gave me a hint of how to do it. No need to modify gitk itself: just

是否有快速的Git命令来查看文件的旧版本?

雨燕双飞 提交于 2019-12-10 16:50:52
Git中是否有命令可以查看(转储到stdout或 $PAGER 或 $EDITOR )特定文件的特定版本? #1楼 如果您喜欢GUI,则可以使用gitk: 用以下命令启动gitk: gitk /path/to/file 在屏幕顶部选择修订版本,例如按描述或日期。 默认情况下,屏幕的下部显示该版本的差异(对应于“补丁”单选按钮)。 要查看所选版本的文件: 单击“树”单选按钮。 这将显示该修订版中文件树的根。 深入到您的文件。 #2楼 按日期执行如下操作: git show HEAD@{2013-02-25}:./fileInCurrentDirectory.txt 请注意, HEAD@{2013-02-25} 表示此存储库中的“ HEAD位于2013-02-25上”(使用 reflog ),而不是“此历史记录中2013-02-25之前的最后一次提交”。 #3楼 除了 Jim Hunziker 的回答, 您可以将修订版中的文件导出为 git show HEAD@{2013-02-25}:./fileInCurrentDirectory.txt > old_fileInCurrentDirectory.txt 希望这可以帮助 :) #4楼 您可以将 git show 与来自存储库根目录的路径一起使用( ./ 或 ../ 用于相对路径): $ git show REVISION:path

What does “Mark this commit” mean in gitk?

隐身守侯 提交于 2019-12-08 14:43:42
问题 When using gitk, a commit can be selected in the log pane, and a right click context menu offers "Mark this commit". What does that do? 回答1: Look at the following options : Return to mark Find descendent of this and mark Compare with marked commit 来源: https://stackoverflow.com/questions/6822072/what-does-mark-this-commit-mean-in-gitk

是否有快速的Git命令来查看文件的旧版本?

我的梦境 提交于 2019-12-08 14:17:25
Git中是否有命令可以查看(转储到stdout或 $PAGER 或 $EDITOR )特定文件的特定版本? #1楼 如果您喜欢GUI,则可以使用gitk: 用以下命令启动gitk: gitk /path/to/file 在屏幕顶部选择修订版本,例如按描述或日期。 默认情况下,屏幕的下部显示该版本的差异(对应于“补丁”单选按钮)。 要查看所选版本的文件: 单击“树”单选按钮。 这将显示该修订版中文件树的根。 深入到您的文件。 #2楼 按日期执行如下操作: git show HEAD@{2013-02-25}:./fileInCurrentDirectory.txt 请注意, HEAD@{2013-02-25} 表示此存储库中的“ HEAD位于2013-02-25上”(使用 reflog ),而不是“此历史记录中2013-02-25之前的最后一次提交”。 #3楼 除了 Jim Hunziker 的回答, 您可以将修订版中的文件导出为 git show HEAD@{2013-02-25}:./fileInCurrentDirectory.txt > old_fileInCurrentDirectory.txt 希望这可以帮助 :) #4楼 您可以将 git show 与来自存储库根目录的路径一起使用( ./ 或 ../ 用于相对路径): $ git show REVISION:path

显示两个修订版之间已更改的文件

喜夏-厌秋 提交于 2019-12-06 12:15:37
我想合并两个已分开一段时间的分支,并想知道哪些文件已被修改。 看到这个链接: http : //linux.yyz.us/git-howto.html 这非常有用。 比较我遇到的分支的工具是: git diff master..branch git log master..branch git shortlog master..branch 想知道是否有类似“git status master..branch”的东西只能看到两个分支之间不同的文件。 在没有创建新工具的情况下,我认为这是您现在可以做到的最接近的工具(如果文件被多次修改,当然会显示重复): git diff master..branch | grep "^diff" 想知道是否有我遗漏的东西...... #1楼 还要记住,git具有便宜且易于分支的特点。 如果我认为合并可能有问题,我会为合并创建一个分支。 因此,如果 master 有我想要合并的更改, ba 是我需要master的代码的分支,我可能会执行以下操作: git checkout ba git checkout -b ba-merge git merge master .... review new code and fix conflicts.... git commit git checkout ba git merge ba-merge git

gitk fails to launch on macOS 10.14 (Mojave)

删除回忆录丶 提交于 2019-12-06 07:56:43
问题 I get the following error when I try to run gitk on macOS Mojave (10.14.4): Error in startup script: file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef:2: I/O warning : failed to load external entity "file://localhost/System/Library/DTDs/sdef.dtd" <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd"> ^ file:///System/Library/PrivateFrameworks/FolderActionsKit.framework/Versions/A/Resources/FolderActions.sdef:2: I/O warning : failed to load external entity

What is the format of regular expressions in gitk?

北战南征 提交于 2019-12-05 13:11:42
I'm trying to use the find/"adding/removing string"/regular expression option in gitk. The syntaxes I have tried don't work, and I can find no docs that describe the syntax of the regular expressions it accepts. I'm trying to match both Modem_Wakup and Modem_UnWakeup . Neither Modem_(Un)?Wakeup nor Modem_\(Un\)?Wakeup , nor Modem_\(Un\)\?Wakeup , nor any other obvious ones work. I can find the strings individually, so I know there should be matches. So what syntax does it use? VonC This feature should be based on the pickaxe grep system , based on POSIX regexp . But this thread reports some