您的位置:首页 > 其它

mac使用git,repo的账号错误时,.git/config文件的配置

2017-10-17 17:08 375 查看
mac使用git pull 报错:repo的账号错误时,可能是mac自带了一个账号记忆的功能,

所以在我们配置.git/config文件[remote "origin"]的 url  时,不能直接把coding.net的地址复制进来

那就需要我们修改一下

上代码:

[remote "origin"]

        url = https://admin:password@git.coding.net/wutingyu/Childr.git
        fetch = +refs/heads/*:refs/remotes/origin/*


admin :自己的coding账号

password:密码

这里需要把自己的coding.net的账号和密码加上就不会报 repo的账号错误啦
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: