用于用户帐户的 Git 与 Windows 资源管理器的集成

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29961814/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 10:57:56  来源:igfitidea点击:

Git integration with Windows Explorer for the user account

gitexplorer

提问by user2314351

I have installed latest Git (Git-1.9.5-preview20150319) from admin account on Windows 7. Git has integrated with Windows Explorer (Git Init Here, Git Gui, Git Bash in the pop-up menu) on admin account.

我已经从 Windows 7 上的管理员帐户安装了最新的 Git (Git-1.9.5-preview20150319)。Git 已在管理员帐户上与 Windows 资源管理器(Git Init Here、Git Gui、Git Bash 在弹出菜单中)集成。

On the user account Git Bash and Git Gui work, but they are not integrated with Windows Explorer. How can i achieve it?

在用户帐户上,Git Bash 和 Git Gui 可以工作,但它们未与 Windows 资源管理器集成。我怎样才能实现它?

回答by SantanuMajumdar

Try this,

尝试这个,

Uninstall your current Git from Windows.

从 Windows 卸载当前的 Git。

Go to GIT download page-> Download Will Start Automatically

转到GIT 下载页面-> 下载将自动开始

If you don't want to go through the above clicks, here is the direct url to the download page on msysgit page.

如果你不想通过上面的点击,这里是msysgit 页面上下载页面的直接 url 。

Click on the downloaded executable to start the install process. Accept all the default options during installation as shown below.

单击下载的可执行文件以开始安装过程。在安装过程中接受所有默认选项,如下所示。

The installation wizard will walk you through the following 10 screens:

安装向导将引导您完成以下 10 个屏幕:

1) Welcome Screen

1) 欢迎画面

2) Read the license

2)阅读许可证

3) Select Destination folder:By default this will be installed under “C:\Program Files\Git”

3)选择目标文件夹:默认情况下,这将安装在“C:\Program Files\Git”

4) Select Components:This lets you choose which components of git you like to install. Use the default selections.

4) 选择组件:这让你可以选择你喜欢安装的 git 组件。使用默认选择。

enter image description here

在此处输入图片说明

5) Select Start Menu Folder

5) 选择开始菜单文件夹

6) Adjusting your PATH environment:Use the default selection “Use Git Bash Only”.

6) 调整你的 PATH 环境:使用默认选项“Use Git Bash Only”。

[Note]- In Your case use Run git from Windows Command Prompt.

[注意]- 在你的情况下,使用 Windows 命令提示符运行 git。

enter image description here

在此处输入图片说明

7) Choosing the SSH executable:Use the default selection “Use OpenSSH”.

7) 选择 SSH 可执行文件:使用默认选择“使用 OpenSSH”。

8) Configuring the line ending conversions:This indicates how Git will treat the line ending in the text files. If you are planning to checkout files from a remote Git repository that is running on Linux, use the default selection “Checkout Windows-style, commit Unix-style line endings”.

8) 配置行尾转换:这表示 Git 将如何处理文本文件中的行尾。如果您计划从在 Linux 上运行的远程 Git 存储库检出文件,请使用默认选择“检出 Windows 风格,提交 Unix 风格的行尾”。

enter image description here

在此处输入图片说明

9) Installing:This will show the progress bar indicating the installation progress.

9) 安装:这将显示指示安装进度的进度条。

10) Completing the Git setup wizard:Click on finish to exist the setup.

10) 完成 Git 设置向导:点击完成以存在设置。

Let me know if this helps.

如果这有帮助,请告诉我。

Thanks.

谢谢。