Microsoft/Git-Credential-Manager-for-Mac-and-Linux
纠正Mac上的错误:
Fatal: java.lang.Error encountered. Details:
unexpected error
fatal: credential helper '!/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java -Ddebug=false -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.3/libexec/git-credential-manager-2.0.3.jar' told us to quit
Mac上的 配置需要添加 如下 --add-modules java.xml.bind
完整的命令应该是:git config --global --replace-all credential.helper '!java --add-modules java.xml.bind -Ddebug=true -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.3/libexec/git-credential-manager-2.0.3.jar'
我打开了调试模式。如果有其他错误。请留言。
Installation Instructions
This document explains how to obtain the Git Credential Manager for Mac and Linux (GCM4ML) and how to configure Git to use the GCM4ML as its credential helper.
System Requirements
Great care was taken to avoid using any features of Java that would impact compatibility with Java 6. If you find a compatibility issue, please report it and provide as many details about your platform as necessary to reproduce the problem.
- Mac OS X version 10.9.5 and up OR a recent GNU/Linux distribution.
- Java 6 and up.
- Git version 1.9 and up.
How to install
On Mac OS X, installing via Homebrew is highly recommended. On Linux, it is recommended to use Linuxbrew or an RPM-based package manager if you can.
If you can't use any of the package managers, you can also download git-credential-manager-2.0.3.jar somewhere safe and stable, such as ~/git-credential-manager/, and then follow the instructions for automatic or manual configuration.
Installing on Mac using Homebrew or on Linux using Linuxbrew (recommended)
Update the Homebrew/Linuxbrew formulae to make sure you have the latest versions:
brew update
Install the GCM4ML formula:
brew install git-credential-manager
Run the GCM4ML in
installmode, which will check its requirements and then update the "global" Git configuration file (the one in your home folder):git-credential-manager install
Installing on Linux using RPM (recommended)
Download git-credential-manager-2.0.3-1.noarch.rpm and copy the file somewhere locally.
Download the PGP key used to sign the RPM.
Import the signing key into RPM's database:
sudo rpm --import RPM-GPG-KEY.txt
Verify the GCM4ML RPM:
rpm --checksig --verbose git-credential-manager-2.0.3-1.noarch.rpm
...you should see a line (among those there) that is equal to the following:
V4 RSA/SHA256 Signature, key ID ba34dbc2: OK
Install the RPM:
sudo rpm --install git-credential-manager-2.0.3-1.noarch.rpm
Run the GCM4ML in
installmode, which will check its requirements and then update the "global" Git configuration file (the one in your home folder):git-credential-manager install
Installing on Mac or Linux without a package manager
Download git-credential-manager-2.0.3.jar somewhere safe and stable, such as ~/git-credential-manager/
Automatic configuration (recommended)
Run the GCM4ML in
installmode, which will check its requirements and then update the "global" Git configuration file (the one in your home folder):java -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar install
Manual configuration
Configure the
credential.helpersetting to launch Java with the absolute path to the JAR (make sure you surround the whole value with 'single quotes'):git config --global credential.helper '!java -Ddebug=false -Djava.net.useSystemProxies=true -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar'
How to enable alternate credential storage
On Linux, the GCM4ML stores credentials in the GNOME Keyring. If GNOME Keyring is unavailable for your Linux distribution, or you are running the GCM4ML via a secure shell (SSH) session, a Git setting can be used to opt into storing credentials unencrypted in a file under your home directory where presumably only you and root have read access.
To enable fallback storage of credentials in this file, run this Git configuration command:
git config --global credential.canFallBackToInsecureStore true
With this setting, the GCM4ML will fallback to storing your credentials in this file:
~/.VSTeamServicesAuthPlugin/insecureStore.xml
How to enable (or disable) debug mode
Debug mode will turn on tracing and assertions, producing a lot of output to stderr. Only turn this on temporarily, when trying to isolate a defect.
Automatic configuration (recommended)
Run the GCM4ML in
installmode with thedebugproperty set totrue(orfalseto disable):java -Ddebug=true -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar install
Manual configuration
Retrieve the value of the
credential.helperconfiguration:git config --global --get credential.helper git-credential-manager
...it should look like this:
!java -Ddebug=false -Djava.net.useSystemProxies=true -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar
Set a new value for the
credential.helperconfiguration (essentially repeating the manual configuration installation step, being careful with quoting and spaces), changing the value of thedebugproperty totrue(orfalseto disable).
How to configure the proxy server
If your network does not allow a direct connection to remote hosts, you can configure the GCM4ML to perform requests through a web proxy.
Automatic configuration (recommended)
If you are running Gnome 2.x or greater, you can configure the proxy settings using the GUI and the GCM4ML will use those settings thanks to a JVM feature that's activated by setting the java.net.useSystemProxies system property to true (this is now done automatically when running the GCM4ML in install mode).
Manual configuration
If it's not possible to use the automatic proxy server configuration, you must set the appropriate networking properties. Aside from SOCKS proxy servers, which can have their credentials specified through specific properties, authenticated proxy servers are currently not supported.
Retrieve the value of the
credential.helperconfiguration:git config --global --get credential.helper git-credential-manager
...it should look like this:
!java -Ddebug=false -Djava.net.useSystemProxies=true -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar
Set a new value for the
credential.helperconfiguration (essentially repeating the manual configuration installation step, being careful with quoting and spaces), adding the appropriate properties. For example, if you have a proxy server that can do HTTP and HTTPS, running on the host192.168.0.117, listening on port8123, then you would run the following (notice there's a pair of properties for http and one for https).git config --global credential.helper '!java -Ddebug=false -Dhttp.proxyHost=192.168.0.117 -Dhttp.proxyPort=8123 -Dhttps.proxyHost=192.168.0.117 -Dhttps.proxyPort=8123 -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar'
How to remove or uninstall
We are sad to see you go! Please give us some feedback on how we could do better next time.
Uninstall from Mac using Homebrew or Linux using Linuxbrew
Run the GCM4ML in
uninstallmode, which will update the "global" Git configuration file (the one in your home folder):git-credential-manager uninstall
Uninstall the git-credential-manager package with Homebrew/Linuxbrew:
brew uninstall git-credential-manager
Archive the
insecureStore.xmlfile from thegit-credential-managersub-folder under your HOME folder.
Uninstall from Linux using RPM
Run the GCM4ML in
uninstallmode, which will update the "global" Git configuration file (the one in your home folder):git-credential-manager uninstall
Uninstall the git-credential-manager package with RPM:
sudo rpm --erase git-credential-manager-2.0.3-1.noarch
Archive the
insecureStore.xmlfile from thegit-credential-managersub-folder under your HOME folder.
Automatic configuration removal (recommended)
Retrieve the value of the
credential.helperconfiguration:git config --global --get credential.helper git-credential-manager
Run the GCM4ML in
uninstallmode, which will update the "global" Git configuration file (the one in your home folder):java -jar /home/example/git-credential-manager/git-credential-manager-2.0.3.jar uninstall
The value retrieved in step 1 contained the path to the JAR. You can go delete that JAR.
Archive the
insecureStore.xmlfile from thegit-credential-managersub-folder under your HOME folder.
Manual configuration removal
Retrieve the value of the
credential.helperconfiguration:git config --global --get credential.helper git-credential-manager
Delete the value of the
credential.helperconfiguration:git config --global --unset credential.helper git-credential-manager
The value retrieved in step 1 contained the path to the JAR. You can go delete that JAR.
Archive the
insecureStore.xmlfile from thegit-credential-managersub-folder under your HOME folder.
Microsoft/Git-Credential-Manager-for-Mac-and-Linux的更多相关文章
- Windows 10 上的 Git 如何清除密码? Git Credential Manager for Windows
Windows 10 上的 Git 如何清除密码? 因为一台新的电脑是 Windows 10 在第一次使用 Git 要求输入密码时把密码给输错了. 之前提交都是说 Token 错了,不再出现提示密码. ...
- Use Git Credential Managers to Authenticate to Azure Repos
https://docs.microsoft.com/en-us/azure/devops/repos/git/set-up-credential-managers?view=azure-devops ...
- 全网最详细的Git学习系列之介绍各个Git图形客户端(Windows、Linux、Mac系统皆适用ing)(图文详解)
不多说,直接上干货! 一.TortoiseGit - The coolest Interface to Git Version Control TortoiseGit 是 TortoiseSVN 的 ...
- 编译boost到各个系统平台 mac,iOS,linux,android,wind
编译boost到各个系统平台 mac,iOS,linux,android,wind git地址:https://github.com/czjone/boost git仓库:https://github ...
- 操作系统-mac安装linux(Ubuntu)
mac安装linux 安装linux,分为两步: 1. 制作linux启动U盘 2. 通过启动U盘,安装Ubuntu系统 Mac OS X下创建USB启动盘 格式化USB驱动盘 下载Ubuntu桌面版 ...
- 微软开放技术发布针对 Mac 和 Linux 的更新版 Azure Node.JS SDK 和命令行工具
发布于 2013-12-04 作者 Eduard Koller 这次为我们使用Linux 的朋友带来了更多关于部署云上虚拟机的消息.今天,微软开放技术有限公司 (MS Open Tech),想与大家分 ...
- NProxy——Mac和Linux平台下的Fiddler
Fiddler 相信大家,尤其是前端工程师们都知道. 用它的文件替换功能,将线上的静态资源文件(JS.CSS.图片)替换为本地相应的文件,来调试线上(代码都被压缩过)UI的问题.的确是一神器.(相比, ...
- [转]Decrypt Any iOS Firmware on Mac, Windows, Linux
source:http://www.ifans.com/forums/threads/decrypt-any-ios-firmware-on-mac-windows-linux.354206/ Dec ...
- mac 连接linux服务器,用scp命令实现本地文件与服务器文件之间的互相传输
mac连接linux服务器 打开终端,切换到root权限下,切换root权限命令:sudo -i 通过ssh命令连接linux服务器:ssh root@ip地址(root是账户名) 然后根据提示输入密 ...
- 在Windows、Mac和 Linux系统中安装Python与 PyCharm
“工欲善其事,必先利其器”,本文介绍 Python环境的安装和 Python的集成开发环境(IDE) PyCharn的安装. 一.Python安装( Windows.Mac和 Linux) 当前主 ...
随机推荐
- AOJ 2170 Marked Ancestor[并查集][离线]
题意: 给你一颗N个节点的树,节点编号1到N.1总是节点的根.现在有两种操作: M v: 标记节点v Q v: 求出离v最近的标记的相邻节点.根节点一开始就标记好了. 现在给一系列操作,求出所有Q操作 ...
- HDU3342Legal or Not 拓扑排序
有向图判断是否成环 如果是环输出NO 只要入度为0的点的个数 等于 总的点的个数则无环 #include<bits/stdc++.h> using namespace std; //in ...
- android和java以太坊开发区块链应用使用web3j类库
如何使用web3j为Java应用或Android App增加以太坊区块链支持,教程内容即涉及以太坊中的核心概念,例如账户管理包括账户的创建.钱包创建.交易转账,交易与状态.智能合约开发与交互.过滤器和 ...
- centos7.2 使用rpm安装jdk8
1.下载JDK 去jdk下载页面找到要下载的jdk,用wget下载 wget --no-check-certificate --no-cookies --header "Cookie: or ...
- java中如何不自己写排序方法完成排序
1.如果要排序的东西是放在一个数组里面的 1.1如果要排序的东西是基本数据类型,如int int[] c=new int[]{4,5,1,2,3,6,9}; Arrays.sort(c); Array ...
- nc高级应用
参数介绍: nc.exe -h即可看到各参数的使用方法. 基本格式:nc?[-options]?hostname?port[s]?[ports]?... nc?-l?-p?port?[options] ...
- (python数据分析)第03章 Python的数据结构、函数和文件
本章讨论Python的内置功能,这些功能本书会用到很多.虽然扩展库,比如pandas和Numpy,使处理大数据集很方便,但它们是和Python的内置数据处理工具一同使用的. 我们会从Python最基础 ...
- Node+Express+MongoDB + Socket.io搭建实时聊天应用实战教程(二)--node解析与环境搭建
前言 本来开始写博客的时候只是想写一下关于MongoDB的使用总结的,后来觉得还不如干脆写一个node项目实战教程实战.写教程一方面在自己写的过程中需要考虑更多的东西,另一方面希望能对node入门者有 ...
- HDU.4757.Tree(可持久化Trie)
题目链接 \(Description\) 给定一棵树,点有点权.\(Q\)次询问\(x,y,z\),求\(x\)到\(y\)的简单路径中,与\(z\)异或能得到的最大的数是多少. \(Solution ...
- [SRM577]BoardPainting
题意:一个全白的网格,你要将一些格子涂黑,每次只能选一行或一列中的连续白格涂黑,问最小操作次数 先假装我们一次涂一个联通块,那么答案就是联通块个数,然后在这个基础上增加一些代价让方案变得合法 考虑这样 ...