配置Powershell 使其支持git_for_windows 并添加到右键菜单
来源:互联网 发布:jmeter 引用java文件 编辑:程序博客网 时间:2024/06/06 10:47
配置Powershell 使其支持git_for_windows 并添加到右键菜单
与hyf一起折腾一晚终于搞定。
1.
更改Powershell配置,使其支持 git. 工具为 Posh-Git参考Pro git (git官网可下载)
=============================================================================
If you’ve installed GitHub for Windows, Posh-Git is included by default, and
all you have to do is add these lines to your profile.ps1 (which is usually located
in C:\Users\<username>\Documents\WindowsPowerShell):
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
. $env:github_posh_git\profile.example.ps1
!profile.ps1 在Power shell.exe 所在文件夹 新建该文件
!profile.ps1 无数字证书,需修改策略,运行命令 set-executionpolicy remotesigned
2.更改注册表
在 文件夹空白处右键打开 git shell
=============================================
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\Background\shell\git_shell]
@="Git Shell Here"
[HKEY_CLASSES_ROOT\directory\Background\shell\git_shell\command]
@="\"C:\Windows\syswow64\Windowspowershell\v1.0\powershell.exe\""
==============================================
0 0
- 配置Powershell 使其支持git_for_windows 并添加到右键菜单
- 给datagridview添加右键菜单并确定其位置
- win7使cmd.exe默认以管理员权限运行并添加到右键菜单
- UltraEdit添加到右键菜单
- EditPlus添加到右键菜单
- 添加程序到右键菜单
- EditPlus添加到右键菜单
- EditPlus添加到右键菜单
- EditPlus添加到右键菜单
- EditPlus添加到右键菜单
- notepad++ 添加到右键菜单
- 添加 cmder 到右键菜单
- 记事本添加到右键菜单
- MFC基于对话框最小化到托盘,并鼠标右键添加菜单以及对应菜单功能
- MFC右键弹出菜单,并添加响应函数
- 添加右键菜单发送到U盘
- editplus,怎么设置添加到右键菜单
- 将EditPlus添加到右键菜单
- Regular Expression Matching
- 第九周项目3:分数类中的运算符重载(续)
- POJ 2234 Matches Game
- mongoDB——安装和启动
- iOS面试题(一)
- 配置Powershell 使其支持git_for_windows 并添加到右键菜单
- Web 通信 之 长连接、长轮询(long polling)
- 理解RESTful架构
- 相似图片搜索原理四(内容特征法)
- mongoDB——通过客户端理解mongoDB体系结构
- 1 VS 1
- csu 1552: Friends(大素数判断+二分图)
- mongoDB——GridFS存储机制
- 回文数