git generated public key, private key, create a remote repository

                                      First, generate your own public key, private key

  1. Type the ssh-keygen -t rsa -C "own registered mail."
  2. Then pops up a file in which to save the key (/ g / Allegro installation /.ssh/id_rsa): This is a reminder that we enter the name of the key, and the path, I am going to call up a name my_keys placed g / Git under path

  3. Pop-up to these two words mean to let you enter the password, we just twice to enter 666666
  4. Now normally, the key and the public key has been generated in just a directory. my - keys is the private key, my_keys.pub is a public key.

                                    Second, create a remote repository 

  5. We first landed at github website creation: SSH Key we find setting

    .
  6. Next we want to create a warehouse find your repositories (your warehouse), click to enter
  7. Then create its own warehouse. Click NEW

    .
  8. A name to the warehouse. Click Create to.

  9. There are two methods to create follow his tips

    , That is, through cloning, cloning a new warehouse, you can put an existing local repository (ie a few days before our new repository) associated with it, then pushed to the content repository Github repository, where we choose the second a.
  10. We prompts on the Github
    Origin https://github.com/2992789432/-testgit.git the Add Remote git 
    git the Push -u Origin Master these two words can be typed Git base to do their own repository of files uploaded to Github
    

    .
  11. It is possible to see the file has been uploaded to Github.

  12. Finally, if I write a blog has helped you, then do not forget to give me a praise, if I want to learn together and progress, you can look at me. I QQ: 2992789432, we welcome comments or suggestions.

    

发布了45 篇原创文章 · 获赞 96 · 访问量 1万+

Guess you like

Origin blog.csdn.net/qq_40831778/article/details/102495758