First, generate your own public key, private key
- Type the ssh-keygen -t rsa -C "own registered mail."
- 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
- Pop-up to these two words mean to let you enter the password, we just twice to enter 666666
- 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
- We first landed at github website creation: SSH Key we find setting .
- Next we want to create a warehouse find your repositories (your warehouse), click to enter
- 。
- Then create its own warehouse. Click NEW .
- A name to the warehouse. Click Create to.
- 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.
- 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
.
- It is possible to see the file has been uploaded to Github.
- 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.