随笔分类 - git
摘要:问题原因: 账号密码验证不通过,密码或者权限不对,导致 Git 操作失败。 解决方案: 输入:git config --system --unset credential.helper 再次进行 Git 操作,输入正确的用户名,密码即可。
阅读全文
摘要:参考文档:https://www.cnblogs.com/wutou/p/17585668.html git config credential.helper 记住保存账号密码、关闭取消密码自动存储 git 记住账号密码: 说明: Git支持多个配置文件,包括全局配置文件、系统配置文件和仓库配置文件
阅读全文
摘要:gitlab配置163邮箱: 阿里云服务器,不用开启其它端口。 修改/etc/gitlab/gitlab.rb文件内容 gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.163.com" gitlab_ra
阅读全文
摘要:git 从远程仓库获取所有分支 git clone xxx cd xxx git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done git
阅读全文