我的项目经历了多个目录重命名和目录拆分.gitk处理非常好,能够跟踪从头到文件修订的文件到第一个文件.
然而,Emacs似乎偶然发现了第一次重命名.它只列出了一些最近的修订Ctrl-x v l(Tools > Version Control > Show History在菜单上,vc-git.el中的vc-git-print-log函数):
commit 13172930ab094badeab81cd2e05119d2a4c1f58a
Author: WinWin <winwin@example.com>
Date: Tue Jul 12 18:17:27 2011 -0600
commit comment
commit 0b52ca957a79a26e51bdd6f7193ef913c4abdc7b
Author: WinWin <winwin@example.com>
Date: Tue Jul 10 10:39:12 2011 -0600
commit comment
commit 8ca577e532849203646867527921b66aa1162dbd
Author: WinWin <winwin@example.com>
Date: Tue Jul 10 08:01:59 2011 -0600
commit comment
commit 9e623a23ad485d0937fe5409162f07434be8ca63
Author: WinWin <winwin@example.com>
Date: Tue Jul 10 01:50:39 2011 -0600
commit comment
Run Code Online (Sandbox Code Playgroud)
由于我习惯了Emacs 内置支持版本控制的方式(CVS时代的手指习惯......),我想知道是否有可能使它能够跟踪整个修订历史,尽管重命名,就像gitk确实, …
我放弃了cygwin的Git版本,现在我想安装msysgit.
问题是......它们都是预览版本.
我需要Git进行制作.那里有stable发布吗?
更复杂的是,我一直在使用gg版本1.7.5.1在cygwin上工作(签入和签出)...这会改变答案吗?
我试图在eBay列表中控制字体大小,使其在Firefox 和 Internet Explorer 8 上看起来相同(或多或少).
为简化起见,我只为整个正文文本指定一个字体大小:
<body style="font-family: Verdana; font-size: 12px;">
...
</body>
Run Code Online (Sandbox Code Playgroud)
然而,在本地(在我的电脑上)字体看起来像我希望它看起来像:
Firefox 3.6:
Internet Explorer 8:
在eBay上,字体看起来要大得多(这不是我想要的):
易趣上的Firefox 3.6:
易趣上的Internet Explorer 8:
我试图当然不同的字体大小单位规范(的em,%等),但差异仍然存在.
为什么会发生这种情况?如何解决这个问题(无需借助发布文本图像......).
据我所知,eBay的CSS和我的HTML之间可能存在一些冲突(我不使用任何CSS,我只使用内联样式!),但我不知道如何告诉eBay 不要覆盖我的风格.
知道怎么克服这个吗?
在本地配置和使用git似乎工作正常:
~/sb> mkdir proj1
~/sb> cd proj1
~/sb/proj1> echo "asdf" > file1.txt
~/sb/proj1> git init
~/sb/proj1> git add .
~/sb/proj1> git commit -a -m "Import"
~/sb/proj1> git branch
* master
Run Code Online (Sandbox Code Playgroud)
当我尝试将其推送到中央存储库时,问题就出现了:
~/sb/proj1> cd /home
~> mkdir temp-repo
~> cd temp-repo/
~/temp-repo> git init --bare
Initialized empty Git repository in /home/temp-repo/
~/temp-repo> cd ~/sb/proj1/
~/sb/proj1> git clone /home/temp-repo/
Cloning into temp-repo...
done.
warning: You appear to have cloned an empty repository.
~/sb/proj1> git push origin master
fatal: 'origin' does …Run Code Online (Sandbox Code Playgroud) 如果我删除了工作目录的整个内容,那么尝试使用git checkout我收到两种不同的行为来恢复它,具体取决于我提供的命令行参数:
git checkout master
Run Code Online (Sandbox Code Playgroud)
我只收到所有已删除文件和目录的列表,但没有真正检出.
但当我这样做时:
git checkout <directory 1 in master>
git checkout <directory 2 in master>
git checkout <directory 3 in master>
git checkout <directory 4 in master>
git checkout <directory 5 in master>
git checkout <directory 6 in master>
git checkout <directory 7 in master>
Run Code Online (Sandbox Code Playgroud)
只有这样,git才能恢复缺失的东西.
这是为什么?
为什么"checkout" 在git中有两个含义?
当我这样做时gitk --follow <filename>,左窗格列出给定文件名的所有提交.
如果我单击其中一个提交,左下方窗格(在提交/分支/标记列表的正下方)会显示diff此选定提交与前一个提交之间的内容.
有没有办法告诉gitk diff在这个选定的提交和最早的提交之间显示?(即列表底部的那个)
好的,所以我add编辑commit了整个子目录到git(push还没有,仍然是本地的.git).
然后我删除了整个子目录.(.git还在那里.)
我现在想要它回来,从git.我怎么做?
我试过,git checkout但它只列出该子目录中的删除文件.
我错过了什么?
我刚做过第一次git push:
~/sb/ws> git push ~/gitrepo master:master
Counting objects: 1360, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (998/998), done.
Writing objects: 100% (1360/1360), 342.15 KiB | 20 KiB/s, done.
Total 1360 (delta 729), reused 0 (delta 0)
To /home/gitrepo
* [new branch] master -> master
Run Code Online (Sandbox Code Playgroud)
它似乎进展顺利,但是当gitk新的(裸)gitrepo 发生火灾时,我只看到提交注释:分支和标签名称消失了!
为什么?
有办法让他们回来吗?
我知道如何获得桌面的HWND:GetDesktopWindow().
但是我找不到一个返回当前活动的 Windows资源管理器主窗口的HWND的函数.
如何以安全可靠的方式获取当前活动的Windows资源管理器窗口的HWND?