Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
791
Star
1.6K
Fork
348
开源中国
/
Gitee Feedback
Code
Issues
5069
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
HTTPS 方式接入码云保存密码的方式
结束任务
#I21WK
Task
Zoker
Opened this issue
2014-04-03 21:35
https 方式每次都要输入密码,按照如下设置即可输入一次就不用再手输入密码的困扰而且又享受 https 带来的极速 设置记住密码(默认15分钟): ``` git config --global credential.helper cache ``` 如果想自己设置时间,可以这样做: ``` git config credential.helper 'cache --timeout=3600' ``` 这样就设置一个小时之后失效 长期存储密码: ``` git config --global credential.helper store ``` **增加远程地址的时候带上密码也是可以的。(推荐)** ``` http://yourname:password@gitee.com/name/project.git ``` 补充:使用客户端也可以存储密码的。 如果你正在使用ssh而且想体验https带来的高速,那么你可以这样做: 切换到项目目录下 : ``` cd projectfile/ ``` 移除远程ssh方式的仓库地址 ``` git remote rm origin ``` 增加https远程仓库地址 ``` git remote add origin http://yourname:password@gitee.com/name/project.git ``` **Update:** Git-for-Windows 默认带有 [Git-Credential-Manager-for-Windows](https://github.com/Microsoft/Git-Credential-Manager-for-Windows) Linux 和 Mac 用户可以使用: [Git-Credential-Manager-for-Mac-and-Linux](https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux) 安装文档: https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/blob/master/Install.md 搞定,enjoy the speed!
https 方式每次都要输入密码,按照如下设置即可输入一次就不用再手输入密码的困扰而且又享受 https 带来的极速 设置记住密码(默认15分钟): ``` git config --global credential.helper cache ``` 如果想自己设置时间,可以这样做: ``` git config credential.helper 'cache --timeout=3600' ``` 这样就设置一个小时之后失效 长期存储密码: ``` git config --global credential.helper store ``` **增加远程地址的时候带上密码也是可以的。(推荐)** ``` http://yourname:password@gitee.com/name/project.git ``` 补充:使用客户端也可以存储密码的。 如果你正在使用ssh而且想体验https带来的高速,那么你可以这样做: 切换到项目目录下 : ``` cd projectfile/ ``` 移除远程ssh方式的仓库地址 ``` git remote rm origin ``` 增加https远程仓库地址 ``` git remote add origin http://yourname:password@gitee.com/name/project.git ``` **Update:** Git-for-Windows 默认带有 [Git-Credential-Manager-for-Windows](https://github.com/Microsoft/Git-Credential-Manager-for-Windows) Linux 和 Mac 用户可以使用: [Git-Credential-Manager-for-Mac-and-Linux](https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux) 安装文档: https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/blob/master/Install.md 搞定,enjoy the speed!
Comments (
88
)
Sign in
to comment
Status
结束任务
新建
开始任务
结束任务
Declined
挂起
Assignees
Not set
Zoker
kesin
Assignee
Collaborator
+Assign
+Mention
Labels
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
No related branch
master
cjx/fix_adjust_mayun_2_gitee
test_version
cjx/add_learngitbranching_entry
hkk/add-item
hkk/style-git-osc
hkk/change-page-width
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(1)
Ruby
1
https://gitee.com/oschina/git-osc.git
git@gitee.com:oschina/git-osc.git
oschina
git-osc
Gitee Feedback
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register