GitHub is a free git server that can find many open source projects
Official website: www.github.com
after registering your account, go to the homepage
Click on the icon in the upper left corner to access the homepage, see 4 Help documents, click on the first document set up Git
The main is to use SSH key to manage editing permissions, in the last extension of the second chapter has introduced the use of SSH, according to the above documents can paste the public key to the new key, then the local permissions are submitted to GitHub.
you can find the button to create a new warehouse in 2 places on the homepage and click on the following page
- The name of the warehouse. will automatically add a. git suffix
- Description information
- Public or private. Public free, non-public cost
- The Readme file is generally a repository document
- . Gitignore is an ignored file that has been introduced before
Click on the green Create key after setting up to finish creating
After the prompt message, submit the first example before the warehouse sample, because the local has completed the initial chemical made, all directly submitted
- CD ~/user1/sample
- git push [email protected]:tinmok/sample.git master
Git push-u represents the submission to the server and sets the default submission path for this branch, which is then committed to the remote branch after setup using git push
Refresh the page to see the warehouse files and logs
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Git Learning Journey (vi)--github remote server