<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]Mac gitk安装与优化]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Mon, 01 Apr 2019 08:12:53 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	gitk --all<br/>--all<br/>Show all branches.<br/><br/>gitk --max-count=100 --all -- Makefile&nbsp;&nbsp;#查看Makefile 100条内容<br/>Show at most 100 changes made to the file Makefile. Instead of only looking for changes in the current branch look in all branches.<br/>实践：gitk --max-count=100 --all -- dns&#92; 运维手册.md<br/><br/>实践：<br/>gitk --since=&quot;2 weeks ago&quot; -- dns&#92; 运维手册.md&nbsp;&nbsp;#显示dns&#92; 运维手册.md两周内的改动<br/><br/>gitk v2.6.12.. include/scsi drivers/scsi&nbsp;&nbsp; #显示在自从版本v2.6.12后这两个子目录的改动<br/>Show the changes since version v2.6.12 that changed any file in the include/scsi or drivers/scsi subdirectories<br/>实践：<br/>gitk 3667109.. .&nbsp;&nbsp; #查看版本号3667109当前目录的改动<br/><br/>来自：https://git-scm.com/docs/gitk/1.6.1<br/><br/><textarea name="code" class="php" rows="15" cols="100">
 16 &gt;---&lt;key&gt;NSAppleScriptEnabled&lt;/key&gt;
 17 &gt;---&lt;true/&gt;
 18 &gt;---&lt;key&gt;OSAScriptingDefinition&lt;/key&gt;
 19 &gt;---&lt;string&gt;Wish.sdef&lt;/string&gt;
 20 &gt;---&lt;key&gt;NSHighResolutionCapable&lt;/key&gt;
 21 &gt;---&lt;true/&gt;
 22 &gt;---&lt;key&gt;NSRequiresAquaSystemAppearance&lt;/key&gt;
 23 &gt;---&lt;true/&gt;
 24 &lt;/dict&gt;
 25 &lt;/plist&gt;
</textarea><br/><br/>一、mac系统安装gitk<br/>gitk是git的一个bin工具，如果git不包含gitk只能说明当前使用的git版本过老。<br/><br/>因此我们只需要安装最新的git就可以了。安装git方法如下：<br/><br/>首先安装brew，方便安装git<br/><br/>/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;<br/>然后更新软件源并安装git<br/><br/>brew update<br/>brew install git<br/>查看git版本<br/><br/>git --version&nbsp;&nbsp;# 我安装之后git version 2.18.0<br/>安装完成后执行type命令检查git路径<br/><br/>type -a git<br/>如果结果路径包含/usr/local/bin/git则安装成功，此时只需在项目目录下输入gitk命令就可以启动gitk了。<br/><br/>但是默认情况下gitk显示很模糊，网上查了之后发现是由于mac自带的Wish软件版本很老，没有对retina屏幕做适配导致的，因此需要做优化。<br/><br/>二、系统优化，开启Wish高分辨率适配<br/>git在Mac下其实早就适配了高分辨率了，其patch链接如下：<br/><br/>https://gist.githubusercontent.com/cynthia/5f2355a87c2f15d96dbe/raw/6727e73a007b0efabf55dd065e588467ffccc016/wish_app_info_plist.patch<br/><br/>开启高分辨率适配步骤如下：<br/><br/>1、重启系统，在黑屏界面的时候按住command + r直至出现进度条，进入系统recovery模式<br/><br/>2、在recovery模式中选择简体中文进入桌面，在最顶层的工具栏中找到“实用工具” -&gt; “终端”，启动命令行终端<br/><br/>3、执行以下命令关闭系统保护，详细了解OS X的rootless<br/><br/>csrutil disable<br/>4、重启正常进入系统，修改系统配置文件（如果没有上面的csrutil disable，是无法修改/System目录内的任何内容的）<br/><br/>sudo vim /System/Library/Frameworks/Tk.framework/Versions/Current/Resources/Wish.app/Contents/Info.plist<br/>这个/System/Library/Frameworks/Tk.framework/Versions/Current/Resources/Wish.app/Contents/Info.plist在recovery模式下是找不到的<br/><br/>然后在这个文件内容中增加以下两行配置：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;key&gt;NSHighResolutionCapable&lt;/key&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;true/&gt;<br/>增加位置如下图<br/><br/><br/><br/>然后更新Wish.app配置<br/><br/>sudo touch /System/Library/Frameworks/Tk.framework/Versions/Current/Resources/Wish.app<br/>5、再次重启，黑屏时按下command+r直到出现进度条，重新进入recovery模式<br/><br/>6、进入recovery模式桌面后，执行“实用工具”-&gt;“终端”启动命令行终端<br/><br/>7、执行命令开启系统文件保护<br/><br/>csrutil enable<br/>8、重启系统，正常进入系统，gitk就OK了。<br/><br/>来自：https://www.cnblogs.com/snowater/p/9286122.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]Mac gitk安装与优化]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>