Recently wanted to make some of their own fun projects to share to GitHub, online to find a lap upload tutorials, are feeling written too abstruse, complex, foggy, special to their own method record as follows:
PS: This is generally true when you start a project and do not add it directly on GitHub, and then half or finish the project you want to add.
Preparatory work:
1. GitHub Account
2. Add a new Open source project repository on GitHub
3. Sourcetree tools, or other git management tools
(No children's shoes can be downloaded here: Http://pan.baidu.com/s/1kV52fyB software is Mac version)
Body:
1. When the GitHub project is created, it is empty at first, as follows:
2, the following is the key
Via Sourcetree, first clone from GitHub to local
The following screen appears: Add a URL on GitHub, a local file path.
The URL address gets from here:
After cloning succeeds, an empty project appears, so the local connection to GitHub is established.
3. Copy all of your previous projects (except. git files) to the file you just made.
This opens the Sourcetree, you will find that the added files are in the
Direct Select all, push is good.
Attention:
For the first time, you may want to enter your GitHub account number and password, and your partner will not forget
The push process will be a bit long, depending on the size of the project, and the small partner will wait patiently.
Finally, after the success, refresh github-your project site to see all the newly added code.
4, the last small partner best remember to readme.md (equivalent to a description of the project) perfect under the OH
PS: Here is attached how to add pictures inside tips
First in the project root directory to create a picture folder to put pictures, submit this directory, in GitHub to find this picture, copy the image link, in the Readme insert the following code
OVER !
Upload a project from local to Github (Quick start version)