1. Build a project on GitHub
Follow the steps to create a code base on GitHub
Post-creation project on GitHub address: Https://github.com/linlin1314/QY
2. Uploading Code
You need to clone the project on GitHub locally, modify and resubmit the project locally.
Build a warehouse: (generally enter the required folder directory to upload)
1 git init
Select the files to add to the warehouse:
1 git Add.
In general, if you want to share all the code in this folder, add "." After add, the example above is this, if you pass the specified, only need to put "." To the file name, and now just select the files to be added to the warehouse, the following is added into the warehouse:
1 ' Notes '
-M followed by a parameter indicating that after committing the code to GitHub, the description will be displayed on the code file information, such as where the tag is.
It took so long to start uploading the local repository to GitHub, and the following two lines of command fix the problem:
1 Span class= "Lineno" style= "margin:0px; padding:0px; border:0px; outline:0px; Vertical-align:baseline ">2 git Remote add origin [Email protected]:xxx/xxx.git3 git push-u Origin master
This [email protected]:XXX/XXX.git is the address above which the created project is generated. Now open your project URL and you can see that your code has been shown. If you want to update the code, repeat it.
GitHub Quick Start----Create and upload projects