GitHub is a code-hosting platform for version control and collaboration.
First step: Generate The Secret key:
Ssh-keygen-t rsa-b 2048-c "[Email protected]"
Step two: View the secret key:
Cat/root/.ssh/id_rsa.pub
Step three: Copy the secret key to the appropriate location in the SSH and GPG key directory of the Https://github.com/settings/keys website.
Copy the site's clone or download address [url] after you finish
Fourth step: Git clone [email protected]:tianmaxingkun/hello-world.git (URL)
Cloned commands: Git clone
Fifth step: Copy the files to be uploaded to the cloned Remote Storage repository
git add 123.sh
Sixth step: Submit the file to be uploaded to the Remote Storage repository
Git commit-m ' 123 ' (-M is to add a description, if no error is added)
Seventh step: Upload the uploaded files to the Remote Storage repository
Git push Origin Master (if you want to add the-u parameter for the first time, then you don't need it)
Add:
git--version view git version information
git remote-v view Remote repository information
GitHub code Upload hosting detailed