转载请标明出处,谢谢^_^
GitHub is the world's largest distributed version control system. Official website: https://github.com/
With GitHub hosting, you first have to register a id:https://github.com/join?source=login on the website, register to complete, download the installation client: official website: http://code.google.com/p/msysgit/ Downloads/list, here are also I have downloaded the good, but also the author now use (including tortoisegit abbreviation Tgit, Chinese name of the turtle git): Http://pan.baidu.com/s/1pLh9DwR
You can install it yourself.
After the installation is complete, you need to configure Git, open the Git-bash.exe in the installation directory, configure the GIT username and password (using meaningful names and emails), and enter the command:
git config --global"用户名" git config --global"邮箱"
Get SSH keys and related configuration (useful): http://www.xuanfengge.com/using-ssh-key-link-github-photo-tour.html
Once the SSH key is set up, you can start uploading the project:
1: Create a new project on GitHub (new repository):
Create:
and find the address of the project (get the address shown below):
After doing this:
Create a new folder anywhere, right-click the folder –git bash, enter:
clone 你获取的github项目地址
The effect is as follows:
Copy all the files (. git, etc.) from the downloaded folder (the folder will have a green tick under Windows) to the root directory of the project you want to host, some of which are not displayed. Git is hidden, viewed – hidden items, checked, can be seen.
Then right-click-git Bash in the project root blank and enter git init (initialize):
git init
The effect is as follows:
Next, enter git Add. (Note:: Add a space after the dot, do not fall, meaning is added all):
add .
The effect is as follows:
Continue typing:
git commit -m "changes log"
Submitted to the local version control repository,
The quotation marks are the information you have about this submission.
The effect is as follows:
Last input
push -u origin master
Submit your local repository to your GitHub account,
You will be asked to enter your GitHub account number and password (the first time you need to enter it, if you remember the password, you do not need to do it later).
The effect is as follows:
Now that the project has been uploaded successfully, go to GitHub to open the project:
More my new MyTest folder, stating that the upload was successful!
Project Hosting on GitHub