Upload the project step-by-step (Quick Start version) from a local file to Github and get started with github
Recently, I want to share some of my previous fun projects with Github. I have searched for an upload tutorial on the internet, and I feel that it is too profound and complicated to write, we record our method as follows:
PS: This method is generally applicable to a project that is not directly added to github when the project is started.
Preparations:
1. Github account
2. Add a new open source project repository on Github
3. sourcetree tool or other git management tools
(No kids shoes can be downloaded here: http://pan.baidu.com/s/1kV52fyB software is mac version)
Body:
1. After the Github project is created, it is blank at the beginning, as shown below:
2. The following are the key points:
Through sourcetree, first clone from github to local
The following page is displayed: add the url and local file path on github.
Obtain the url from here:
After the clone is successful, an empty project will appear, so that you can establish a connection with github locally.
3. Copy all your previous projects (except. git files) to the file you just copied.
In this way, open sourcetree and you will find that all the added files are in
Select all directly. Just push.
Note:
For the first time, you may need to enter your github account and password.
The push process will take a long time. It depends on the project size, and the partner can wait patiently.
Finally, refresh github. Your project website will be able to see all newly added code.
4. In the end, you 'd better remember to complete Readme. md (equivalent to a project description and so on ).
PS: how to add image Tips to it
First, create a folder for storing images in the project root directory and put it into the image directory. Submit this directory, find this image in github, copy the image connection, and insert it in readme! [Image] (image url)
Last small advertisement:
Two small open-source projects
1. YJ Weibo
I am new to iOS, so that I can learn from anyone interested in iOS.
Https://github.com/TangledHusky/YJWeibo
2. Jigsaw puzzle
Https://github.com/TangledHusky/PuzzlePicture