我正在Windows XP上设置一个git环境(msysGit 1.7.11,TortoiseGit 1.7.14),并尝试实现以下几点:
所以我创建了一个〜/ .ssh/config文件:
Host gitbox
User gitolite
Hostname XX.XX.XX.XX
Port 154
PreferredAuthentications publickey
IdentityFile "/c/Documents and Settings/kraymer/.ssh/id_rsa"
Run Code Online (Sandbox Code Playgroud)
使用git bash CLI时,一切都按预期工作.
我正在与TortoiseGit斗争.
我首先使用Plink安装TortoiseGit并使用Pageant加载ssh私钥.自动身份验证(Pageant)工作但设置失败,因为TortoiseGit无法识别格式为gitolite@gitbox/repo.git的 git repos url .
然后我决定使用openssh客户端安装TortoiseGit,因此ssh客户端可以读取配置文件,并模仿git CLI设置.
我在TortoiseGit设置中选择了msys git附带的ssh.exe作为ssh客户端.
在执行a时git pull,远程URL现在已解析,但在我期望进行ssh-agent自动身份验证时会询问密码短语密码.

是否可以使TortoiseGit与ssh-agent一起使用?
或者让TortoiseGit(Plink)知道.ssh/config?
编辑#1
在@VonC建议后,我配置了我的$ HOME变量.
当我在TortoiseGit中单击显示环境变量时,我现在有:
HOME=C:\Documents and Settings\kraymer
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\kraymer
Run Code Online (Sandbox Code Playgroud)
但git pull仍然要求我输入密码.
我们有一个ONGOING.md文件,每个开发人员在推送代码时添加项目.
看起来像 :
### Added
- item 1
### Changed
- item 2
Run Code Online (Sandbox Code Playgroud)
当拉/推代码时,所有行都被覆盖,所以我.gitattributes在repo root 添加了一个文件:
ONGOING.md -text merge=union
Run Code Online (Sandbox Code Playgroud)
我希望在此之后保留每个书面行,但事实并非如此,覆盖仍然发生.
处理这个问题的正确方法是什么?
编辑:
好的,它刚刚发生,所以我复制/粘贴我的终端的内容:
$ more fab/hotfix/ONGOING.md
### Added
$ nano fab/hotfix/ONGOING.md; git commit fab/hotfix/ONGOING.md -m "update ongoing"
$ more fab/hotfix/ONGOING.md
### Added
- add slug column to BO fack topic admin page
$ git pull
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 14 (delta …Run Code Online (Sandbox Code Playgroud) 我使用 sphynx 从静态 .rst 文件生成文档(不提取文档字符串)。
我的存储库中有两个文件:
索引.rst
.. toctree::
intro
Run Code Online (Sandbox Code Playgroud)
和介绍
Will be skipped
===============
Where is my parent section?
---------------------------
Second section
==============
Run Code Online (Sandbox Code Playgroud)
以下是通过运行获得的pdf截图sphinx-build -b latex . _build; cd _build; pdflatex *:

大惊小怪还是什么?
我想将状态栏左消息更改为我键入的任何内容。
就像当我按下时,我Ctrl+B F在状态栏中有这个提示:
(find-window)
Run Code Online (Sandbox Code Playgroud)
我想按一下,说出Ctrl+B E提示,例如:
(status-left)
Run Code Online (Sandbox Code Playgroud)
然后在Enter我输入的文本上将分配给status-left。
我不要想得叫一个shell脚本,将打印的提示在shell窗口,并打印输入的值(是,甚至有可能?),我想提示在状态栏本身发生。
我该怎么办?如果我输入.tmux.conf:
unbind e
bin e set status-left
Run Code Online (Sandbox Code Playgroud)
当我按时它可以打印出空值消息Ctrl+B E