Sourcetree避免二次密码验证

1. 进入项目目录

执行下述命令

git config --global credential.helper osxkeychain

2. 异常

2.1 error:did you mean--global(with two dashes?)

记住 --global 一定写成 --(两个-)

2.2 不能执行,请先安装
$ git credential-osxkeychain
# Test for the cred helper
  git: 'credential-osxkeychain' is not a git command. See 'git --help'.
$ curl -s -O \
  https://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
# Download the helper
$ chmod u+x git-credential-osxkeychain
# Fix the permissions on the file so it can be run
$ sudo mv git-credential-osxkeychain \
  "$(dirname $(which git))/git-credential-osxkeychain"
# Move the helper to the path where git is installed
  Password: [enter your password]
$  git config --global credential.helper osxkeychain
# Set git to use the osxkeychain credential helper

原文CSDN:https://blog.csdn.net/qq_19484963/article/details/79026512

全部评论

相关推荐

牛客60022193...:大厂都招前端,他们觉得AI能替代前端,可能他们公司吊打btaj吧
点赞 评论 收藏
分享
秋招投简历提醒助手:个人经验是,一般面二十场左右就会进入侃侃而谈阶段。我今年七月末的时候开始的第一次面试,都是很多不会,回复很慢。后面慢慢迭代,到九月中的时候基本上面啥说啥,很放松的状态
远程面试的尴尬瞬间
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务