美文网首页
github相关

github相关

作者: 果酱一一 | 来源:发表于2015-12-25 22:26 被阅读33次
    • 错误: The requested URL returned error: 403 Forbidden while accessing

    vim .git/config
    [remote "origin"]
        url = https://github.com/wangz/example.git
    改成 
    [remote "origin"]
        url = https://wangz@github.com/wangz/example.git
    
    

    参考:http://blog.csdn.net/happyteafriends/article/details/11554043

    • 解决github总是要输入密码及改进ssh

    两个重要的目录

    cd ~./ssh
    cd your project dir
    vim .git/config
    
    [core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
    [remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = ssh://git@github.com/名字/example.git    //https改成ssh
    [branch "master"]
        remote = origin
        merge = refs/heads/master
    

    具体参考:
    https://help.github.com/articles/generating-ssh-keys/

    Paste_Image.png

    相关文章

      网友评论

          本文标题:github相关

          本文链接:https://www.haomeiwen.com/subject/hefbhttx.html