github相关

2015-12-25  本文已影响33人  果酱一一
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

两个重要的目录

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
上一篇 下一篇

猜你喜欢

热点阅读