美文网首页
GIT: Commonly used operations

GIT: Commonly used operations

作者: Andy512 | 来源:发表于2019-06-21 23:35 被阅读0次

    add public kay
    go to ~/.ssh , check if there exist id_rsa and id_rsa.pub
    id_rsa is the private key and id_rsa.pub is the public key.

    if those two files not existed, create them by:
    ssh-keygen -t rsa -C "youremail@example.com"

    add the publica key into your github

    add remote repo
    git remote -add "name" master "git@..."

    fetch a repo from github
    git remote fetch

    相关文章

      网友评论

          本文标题:GIT: Commonly used operations

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