Remote library push and clone
SSH key generated under 1.Linux
Command line Input ssh-keygen-t rsa-c "your email"
A. SSH directory is generated in the home directory, and the id_rsa.pub is your SSH key key.
Under Login github, click Account Settings, SSH key, add SSH key to add your key
At this point, you are binding the two, and you can push the version to GitHub under Linux.
(Note: The code on GitHub can be seen by others, unless you pay for it, etc.)
2. Push your code to GitHub for synchronization
Create a new warehouse on GitHub, such as the name test
At this point you can associate the repository with Linux and push it to GitHub for synchronization
git remote add origin [email protected]: "Your name"/test.git//local add an origin associated with test on GitHub
Git push-u Origin master//first time plus-u pushes the Master branch out via origin to GitHub's test
Now you've pushed your version to GitHub.
Push the origin master directly with GIT (origin can be changed to something else)
3. Cloning a warehouse
For example, if you want to clone your test repository,
command line input git clone [email protected]: "Your name "/test.git can