In the process of using GitHub, there is always a sudden forget the once very familiar command how suddenly will not write ... Here to organize a copy, easy to review.
Create a new warehouse first:
This allows us to create a new remote repository on GitHub and then pass the local code to the remote repository. Locate the local folder, and then execute the following command in the folder in turn.
-M "First"git remote add origin [email protected]:github username /repository name Git push-u origin master // If we choose to create a new readme, there will be an error execution: Git pull Origin Master is submitted again.
Get Preview Link
Found under Settings:
With the master branch selected, a link is generated:
Just add your page name to the back.
Next, delete the warehouse:
The same is the settings below:
In this way, the warehouse is deleted.
GitHub's new warehouse, upload code, preview link, delete warehouse