如何从USB记忆棒运行Git 1.6.x for Windows [英] How to run Git 1.6.x for Windows from a USB memory stick

查看:140
本文介绍了如何从USB记忆棒运行Git 1.6.x for Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有一个Windows版本的Git可供您使用: http://code.google.com/p/msysgit/

从本地硬盘c:\安装并运行它绝对没有问题。但是,我无法了解如何从USB记忆棒上运行。这篇文章表明,可以从二进制文件c:\并将它们复制到USB记忆棒中。



我不明白的几点是:


  1. 可以为Git设置全局设置,例如姓名和电子邮件地址:它们存储在哪里?在%userprofile%下的某处

  2. 假设我只是将二进制文件移动到USB记忆棒:Git仍然不会在%userprofile%下的c:\上寻找全局设置我的USB驱动器,是否有一个路径设置(在一些Git配置文件,而不是Windows路径变量),可以指向例如e:\ git \设置与e:是我的USB驱动器?

感谢您的任何提示。

解决方案

当我今天访问 msysgit下载页面时,有一个 PortableGit,它是22MAR09的新增功能。使用此版本可能会为您提供更多所需的控制。我还没有尝试过,但名称表明它更适合USB棒安装。


I would like to run Git 1.6.x for Windows from a USB memory stick.

There is a Windows version of Git available at: http://code.google.com/p/msysgit/

Installing and running it from the local harddisk c:\ was absolutely no problem. However, I was not able to find out how it can be run from a USB memory stick. This post suggests that one can just take the binaries from c:\ and copy them to a USB memory stick.

The points I don't understand are:

  1. One can set global settings for Git such as one's name and email address: Where are they stored? Somewhere under %userprofile%?
  2. Suppose I would just move the binaries to the USB memory stick: Wouldn't Git still look for the global settings on c:\ under %userprofile% instead of my USB drive and is there a path setting (within some Git configuration file, not the Windows path variable) which can be pointed for example to e:\git\settings with e: being my USB drive?

Thank you for any hints.

解决方案

When I went to the msysgit download page today, there was a download link for "PortableGit" that was new as of 22MAR09. Using this version might provide you with more of the control you need. I have not tried it, but the name suggests it's geared more toward USB-stick installations.

这篇关于如何从USB记忆棒运行Git 1.6.x for Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆